CompanionDeviceManager.NotifyActionResult(Int32, ActionResult) 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.
Allows a companion app to report the result of an action that was requested by the system.
[Android.Runtime.Register("notifyActionResult", "(ILandroid/companion/ActionResult;)V", "", ApiSince=37)]
public void NotifyActionResult(int associationId, Android.Companion.ActionResult result);
[<Android.Runtime.Register("notifyActionResult", "(ILandroid/companion/ActionResult;)V", "", ApiSince=37)>]
member this.NotifyActionResult : int * Android.Companion.ActionResult -> unit
Parameters
- associationId
- Int32
- result
- ActionResult
The ActionResult to report to the system.
- Attributes
Remarks
Allows a companion app to report the result of an action that was requested by the system.
This API should be called after the app has received a request via CompanionDeviceService.onActionRequested(AssociationInfo,ActionRequest). For example: After receiving ActionRequest.OP_ACTIVATE, the app should call this method with ActionResult.RESULT_ACTIVATED upon success or ActionResult.RESULT_FAILED_TO_ACTIVATE upon failure; If a previously activated feature later fails or stops for any reason, the app should proactively call this method with ActionResult.RESULT_DEACTIVATED.
Android reference for android.companion.CompanionDeviceManager.notifyActionResult.
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.