DevicePresenceEvent.EventBtConnected Field

Definition

Caution

This constant will be removed in the future version. Use Android.Companion.DevicePresenceEventType enum directly instead of this field.

Companion app receives CompanionDeviceService#onDevicePresenceEvent(DevicePresenceEvent) callback with this event when the bluetooth device is connected.

[Android.Runtime.Register("EVENT_BT_CONNECTED", ApiSince=36)]
[System.Obsolete("This constant will be removed in the future version. Use Android.Companion.DevicePresenceEventType enum directly instead of this field.", true)]
public const Android.Companion.DevicePresenceEventType EventBtConnected = 2;
[<Android.Runtime.Register("EVENT_BT_CONNECTED", ApiSince=36)>]
[<System.Obsolete("This constant will be removed in the future version. Use Android.Companion.DevicePresenceEventType enum directly instead of this field.", true)>]
val mutable EventBtConnected : Android.Companion.DevicePresenceEventType

Field Value

Value = 2

Implements

Attributes

Remarks

Companion app receives CompanionDeviceService#onDevicePresenceEvent(DevicePresenceEvent) callback with this event when the bluetooth device is connected.

Java documentation for android.companion.DevicePresenceEvent.EVENT_BT_CONNECTED.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to