Lines Matching refs:Callback
16 import type { AsyncCallback, Callback } from './@ohos.base';
396 …on(type: 'deviceStateChange', callback: Callback<{ action: DeviceStateChange, device: DeviceBasicI…
414 …off(type: 'deviceStateChange', callback?: Callback<{ action: DeviceStateChange, device: DeviceBasi…
432 on(type: 'discoverSuccess', callback: Callback<{ device: DeviceBasicInfo }>): void;
450 off(type: 'discoverSuccess', callback?: Callback<{ device: DeviceBasicInfo }>): void;
467 on(type: 'deviceNameChange', callback: Callback<{ deviceName: string }>): void;
484 off(type: 'deviceNameChange', callback?: Callback<{ deviceName: string }>): void;
502 on(type: 'discoverFailure', callback: Callback<{ reason: number }>): void;
520 off(type: 'discoverFailure', callback?: Callback<{ reason: number }>): void;
537 on(type: 'serviceDie', callback?: Callback<{}>): void;
554 off(type: 'serviceDie', callback?: Callback<{}>): void;
572 on(type: 'replyResult', callback: Callback<{ param: string }>): void;
590 off(type: 'replyResult', callback?: Callback<{ param: string }>): void;