Added in API level 34

CarPropertyManager.GetPropertyCallback

public static interface CarPropertyManager.GetPropertyCallback

android.car.hardware.property.CarPropertyManager.GetPropertyCallback


A callback CarPropertyManager#getPropertiesAsync when succeeded or failed.

Summary

Public methods

abstract void onFailure(CarPropertyManager.PropertyAsyncError propertyAsyncError)

Method called when GetPropertyRequest returns an error.

abstract void onSuccess(GetPropertyResult<?> getPropertyResult)

Method called when GetPropertyRequest successfully gets a result.

Public methods

onFailure

Added in API level 34
public abstract void onFailure (CarPropertyManager.PropertyAsyncError propertyAsyncError)

Method called when GetPropertyRequest returns an error.

Parameters
propertyAsyncError CarPropertyManager.PropertyAsyncError

onSuccess

Added in API level 34
public abstract void onSuccess (GetPropertyResult<?> getPropertyResult)

Method called when GetPropertyRequest successfully gets a result.

Parameters
getPropertyResult GetPropertyResult