CompanionDeviceService.OnActionRequested Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Called by the system when it requests an action for an association managed by this app.
[Android.Runtime.Register("onActionRequested", "(Landroid/companion/AssociationInfo;Landroid/companion/ActionRequest;)V", "GetOnActionRequested_Landroid_companion_AssociationInfo_Landroid_companion_ActionRequest_Handler", ApiSince=37)]
public virtual void OnActionRequested(Android.Companion.AssociationInfo associationInfo, Android.Companion.ActionRequest request);
[<Android.Runtime.Register("onActionRequested", "(Landroid/companion/AssociationInfo;Landroid/companion/ActionRequest;)V", "GetOnActionRequested_Landroid_companion_AssociationInfo_Landroid_companion_ActionRequest_Handler", ApiSince=37)>]
abstract member OnActionRequested : Android.Companion.AssociationInfo * Android.Companion.ActionRequest -> unit
override this.OnActionRequested : Android.Companion.AssociationInfo * Android.Companion.ActionRequest -> unit
Parameters
- associationInfo
- AssociationInfo
The association for which the action is requested.
- request
- ActionRequest
The specific request being requested
- Attributes
Remarks
Called by the system when it requests an action for an association managed by this app. This method must be called from the main thread of your app.
Android reference for android.companion.CompanionDeviceService.onActionRequested.
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.