Stay organized with collections
Save and categorize content based on your preferences.
CarRemoteAccessManager.RemoteTaskClientCallback
public
static
interface
CarRemoteAccessManager.RemoteTaskClientCallback
android.car.remoteaccess.CarRemoteAccessManager.RemoteTaskClientCallback
|
Listener for remote task events.
Summary
Public methods
onRegistrationFailed
public abstract void onRegistrationFailed ()
This is called when registering the remote task client fails.
onRemoteTaskRequested
public abstract void onRemoteTaskRequested (String taskId,
byte[] data,
int taskMaxDurationInSec)
This is called when a wake-up request is received/processed.
Parameters |
taskId |
String : ID of the task that is requested by the remote task server. |
data |
byte : Extra data passed along with the wake-up request. |
taskMaxDurationInSec |
int : The timeout before AAOS goes back to the previous power
state. |
onServerlessClientRegistered
public void onServerlessClientRegistered ()
This is called when a pre-configured serverless remote task client is registered.
The serverless remote task client is configured via including a runtime config file
at /vendor/etc/
onShutdownStarting
public abstract void onShutdownStarting (CarRemoteAccessManager.CompletableRemoteTaskFuture future)
This is called when the device is about to shutdown.
The remote task client should finalize the ongoing tasks, if any, and complete the
given future within 5 seconds. After the given timeout, the Android system will shutdown,
anyway.
Parameters |
future |
CarRemoteAccessManager.CompletableRemoteTaskFuture : CompletableRemoteTaskFuture used by the remote task client to
notify CarRemoteAccessManager that all pending remote tasks are finalized. |
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2025-02-17 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-02-17 UTC."],[],[],null,["# CarRemoteAccessManager.RemoteTaskClientCallback\n===============================================\n\n\n`\npublic\nstatic\n\n\ninterface\nCarRemoteAccessManager.RemoteTaskClientCallback\n`\n\n\n`\n\n\n`\n\n|--------------------------------------------------------------------------|\n| android.car.remoteaccess.CarRemoteAccessManager.RemoteTaskClientCallback |\n\n\u003cbr /\u003e\n\n*** ** * ** ***\n\nListener for remote task events.\n\nSummary\n-------\n\n| ### Public methods ||\n|------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ` abstract void` | ` `[onRegistrationFailed](/reference/android/car/remoteaccess/CarRemoteAccessManager.RemoteTaskClientCallback#onRegistrationFailed())`() ` This is called when registering the remote task client fails. |\n| ` abstract void` | ` `[onRegistrationUpdated](/reference/android/car/remoteaccess/CarRemoteAccessManager.RemoteTaskClientCallback#onRegistrationUpdated(android.car.remoteaccess.RemoteTaskClientRegistrationInfo))`(`[RemoteTaskClientRegistrationInfo](/reference/android/car/remoteaccess/RemoteTaskClientRegistrationInfo)` info) ` This is called when the remote task client is successfully registered or the client ID is updated by AAOS. |\n| ` abstract void` | ` `[onRemoteTaskRequested](/reference/android/car/remoteaccess/CarRemoteAccessManager.RemoteTaskClientCallback#onRemoteTaskRequested(java.lang.String,%20byte[],%20int))`(String taskId, byte[] data, int taskMaxDurationInSec) ` This is called when a wake-up request is received/processed. |\n| ` default void` | ` `[onServerlessClientRegistered](/reference/android/car/remoteaccess/CarRemoteAccessManager.RemoteTaskClientCallback#onServerlessClientRegistered())`() ` This is called when a pre-configured serverless remote task client is registered. |\n| ` abstract void` | ` `[onShutdownStarting](/reference/android/car/remoteaccess/CarRemoteAccessManager.RemoteTaskClientCallback#onShutdownStarting(android.car.remoteaccess.CarRemoteAccessManager.CompletableRemoteTaskFuture))`(`[CarRemoteAccessManager.CompletableRemoteTaskFuture](/reference/android/car/remoteaccess/CarRemoteAccessManager.CompletableRemoteTaskFuture)` future) ` This is called when the device is about to shutdown. |\n\nPublic methods\n--------------\n\n### onRegistrationFailed\n\n```\npublic abstract void onRegistrationFailed ()\n```\n\nThis is called when registering the remote task client fails.\n\n\u003cbr /\u003e\n\n### onRegistrationUpdated\n\n```\npublic abstract void onRegistrationUpdated (RemoteTaskClientRegistrationInfo info)\n```\n\nThis is called when the remote task client is successfully registered or the client ID is\nupdated by AAOS.\n\nFor a serverless remote task client, the [ERROR(/onServerlessClientRegistered)](/) will be\ncalled instead of this.\n\n\u003cbr /\u003e\n\n| Parameters ||\n|--------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `info` | `RemoteTaskClientRegistrationInfo`: [RemoteTaskClientRegistrationInfo](/reference/android/car/remoteaccess/RemoteTaskClientRegistrationInfo) which contains wake-up service ID, vehicle ID, processor ID and client ID. \u003cbr /\u003e |\n\n### onRemoteTaskRequested\n\n```\npublic abstract void onRemoteTaskRequested (String taskId, \n byte[] data, \n int taskMaxDurationInSec)\n```\n\nThis is called when a wake-up request is received/processed.\n\n\u003cbr /\u003e\n\n| Parameters ||\n|------------------------|------------------------------------------------------------------------------|\n| `taskId` | `String`: ID of the task that is requested by the remote task server. \u003cbr /\u003e |\n| `data` | `byte`: Extra data passed along with the wake-up request. \u003cbr /\u003e |\n| `taskMaxDurationInSec` | `int`: The timeout before AAOS goes back to the previous power state. \u003cbr /\u003e |\n\n### onServerlessClientRegistered\n\n```\npublic void onServerlessClientRegistered ()\n```\n\nThis is called when a pre-configured serverless remote task client is registered.\n\nThe serverless remote task client is configured via including a runtime config file\nat `/vendor/etc/`\n\n\u003cbr /\u003e\n\n### onShutdownStarting\n\n```\npublic abstract void onShutdownStarting (CarRemoteAccessManager.CompletableRemoteTaskFuture future)\n```\n\nThis is called when the device is about to shutdown.\n\nThe remote task client should finalize the ongoing tasks, if any, and complete the\ngiven future within 5 seconds. After the given timeout, the Android system will shutdown,\nanyway.\n\n\u003cbr /\u003e\n\n| Parameters ||\n|----------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `future` | `CarRemoteAccessManager.CompletableRemoteTaskFuture`: [CompletableRemoteTaskFuture](/reference/android/car/remoteaccess/CarRemoteAccessManager.CompletableRemoteTaskFuture) used by the remote task client to notify CarRemoteAccessManager that all pending remote tasks are finalized. \u003cbr /\u003e |"]]