Language

RequestAction Enum

Definition

public enum RequestAction
type RequestAction = 
Inheritance
RequestAction

Fields

Name Value Description
NearbyScanning 0

An action that signals a request for the companion app to change its nearby scanning state.

When the system sends this request, the app receives a callback to CompanionDeviceService.onActionRequested(AssociationInfo,ActionRequest) with this constant.

Android reference for android.companion.ActionRequest.REQUEST_NEARBY_SCANNING.

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.

NearbyAdvertising 1

An action that signals a request for the companion app to change its nearby advertising state.

When the system sends this request, the app receives a callback to CompanionDeviceService.onActionRequested(AssociationInfo,ActionRequest) with this constant.

Android reference for android.companion.ActionRequest.REQUEST_NEARBY_ADVERTISING.

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.

Transport 2

An action that signals a request for the companion app to attach or detach its system data transport.

When the system sends this request, the app receives a callback to CompanionDeviceService.onActionRequested(AssociationInfo,ActionRequest) with this constant.

Android reference for android.companion.ActionRequest.REQUEST_TRANSPORT.

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