A component that monitors the connection status of audio output devices.
More...
Inherits CriMonoBehaviour.
A component that monitors the connection status of audio output devices.
- Description:
- Use it by adding it to any GameObject.
You can monitor the connection status of the audio output device on your smartphone device and acquire the status externally.
By registering a delegate, you can also receive callbacks when the connection status changes.
To use this component, it is necessary to initialize the Atom library first.
- Note:
- Currently, the functions of this component only work on smartphones (Android / iOS).
Please wait for future updates for support for other platforms.
Type of audio output device
- Description:
- Types of device to which audio is output from the application.
- See also
- CriAtomOutputDeviceObserver::DeviceType
Enumerator |
---|
BuiltinSpeaker |
Internal Speaker
|
WiredDevice |
Wired device (wired headset, etc.)
|
WirelessDevice |
Wireless device (Bluetooth headset, etc.)
|
delegate void DeviceConnectionChangeCallback |
( |
bool |
isConnected, |
|
|
OutputDeviceType |
deviceType |
|
) |
| |
Connection state change callback delegate type
- Parameters
-
isConnected | Output device connection status (false = disconnected, true = connected) |
deviceType | Output device type |
- Description:
- This is the type of the callback function that is called when the connection status of the audio output device changes.
- See also
- CriAtomOutputDeviceObserver::OnDeviceConnectionChanged
Connection state change callback delegate
- Description:
- This is a callback function that is called when the connection status of the audio output device changes.
Called from the application's main thread.
- See also
- CriAtomExOutputDeviceObserver::DeviceConnectionChangeCallback
Gets device connection status
- Returns
- Whether connected (false = disconnected, true = connected)
- Description:
- Returns whether an audio output device is connected to the machine.
Returns true if the output destination is a device other than the internal speaker.
Gets the output device type
- Returns
- Output device type
- Description:
- Gets the type of the current audio output device.
The documentation for this class was generated from the following file:
- CriAtomOutputDeviceObserver.cs