Lines Matching refs:Callback
16 import type { AsyncCallback, Callback } from './@ohos.base';
641 on(type: 'uiStateChange', callback: Callback<{ param: string }>): void;
655 off(type: 'uiStateChange', callback?: Callback<{ param: string }>): void;
665 …on(type: 'deviceStateChange', callback: Callback<{ action: DeviceStateChangeAction, device: Device…
674 …off(type: 'deviceStateChange', callback?: Callback<{ action: DeviceStateChangeAction, device: Devi…
682 on(type: 'deviceFound', callback: Callback<{ subscribeId: number, device: DeviceInfo }>): void;
690 … off(type: 'deviceFound', callback?: Callback<{ subscribeId: number, device: DeviceInfo }>): void;
698 on(type: 'discoverFail', callback: Callback<{ subscribeId: number, reason: number }>): void;
706 off(type: 'discoverFail', callback?: Callback<{ subscribeId: number, reason: number }>): void;
715 on(type: 'publishSuccess', callback: Callback<{ publishId: number }>): void;
724 off(type: 'publishSuccess', callback?: Callback<{ publishId: number }>): void;
733 on(type: 'publishFail', callback: Callback<{ publishId: number, reason: number }>): void;
742 off(type: 'publishFail', callback?: Callback<{ publishId: number, reason: number }>): void;