Language

DevicePresenceEventType Enum

Definition

public enum DevicePresenceEventType
type DevicePresenceEventType = 
Inheritance
DevicePresenceEventType

Fields

Name Value Description
BleAppeared 0

Companion app receives CompanionDeviceService.onDevicePresenceEvent(DevicePresenceEvent) callback with this event if the device comes into BLE range.

Android reference for android.companion.DevicePresenceEvent.EVENT_BLE_APPEARED.

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.

BleDisappeared 1

Companion app receives CompanionDeviceService.onDevicePresenceEvent(DevicePresenceEvent) callback with this event if the device is no longer in BLE range.

Android reference for android.companion.DevicePresenceEvent.EVENT_BLE_DISAPPEARED.

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.

BtConnected 2

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

Android reference 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.

BtDisconnected 3

Companion app receives CompanionDeviceService.onDevicePresenceEvent(DevicePresenceEvent) callback with this event if the bluetooth device is disconnected.

Android reference for android.companion.DevicePresenceEvent.EVENT_BT_DISCONNECTED.

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.

SelfManagedAppeared 4

A companion app for a self-managed device will receive the callback CompanionDeviceService.onDevicePresenceEvent(DevicePresenceEvent) if it reports that a device has appeared on its own.

Android reference for android.companion.DevicePresenceEvent.EVENT_SELF_MANAGED_APPEARED.

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.

SelfManagedDisappeared 5

A companion app for a self-managed device will receive the callback CompanionDeviceService.onDevicePresenceEvent(DevicePresenceEvent) if it reports that a device has disappeared on its own.

Android reference for android.companion.DevicePresenceEvent.EVENT_SELF_MANAGED_DISAPPEARED.

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.

EventAssociationRemoved 6

A companion app will receive the callback CompanionDeviceService.onDevicePresenceEvent(DevicePresenceEvent) with this event when the AssociationInfo is removed.

Android reference for android.companion.DevicePresenceEvent.EVENT_ASSOCIATION_REMOVED.

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.

Nearby 7

Event reported by a self-managed companion app to indicate the device is nearby.

Android reference for android.companion.DevicePresenceEvent.EVENT_SELF_MANAGED_NEARBY.

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.

NotNearby 8

Event reported by a self-managed companion app to indicate the device is not nearby.

Android reference for android.companion.DevicePresenceEvent.EVENT_SELF_MANAGED_NOT_NEARBY.

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