Home
last modified time | relevance | path

Searched refs:AsyncCallback (Results 1 – 25 of 37) sorted by relevance

12

/interface/sdk-js/api/
D@ohos.telephony.observer.d.ts16 import {AsyncCallback} from "./basic";
42 function on(type: 'networkStateChange', callback: AsyncCallback<NetworkState>): void;
43 …function on(type: 'networkStateChange', options: { slotId: number }, callback: AsyncCallback<Netwo…
45 function once(type: 'networkStateChange', callback: AsyncCallback<NetworkState>): void;
46 …function once(type: 'networkStateChange', options: { slotId: number }, callback: AsyncCallback<Net…
48 function off(type: 'networkStateChange', callback?: AsyncCallback<NetworkState>): void;
58 function on(type: 'signalInfoChange', callback: AsyncCallback<Array<SignalInformation>>): void;
60 callback: AsyncCallback<Array<SignalInformation>>): void;
62 function once(type: 'signalInfoChange', callback: AsyncCallback<Array<SignalInformation>>): void;
64 callback: AsyncCallback<Array<SignalInformation>>): void;
[all …]
D@ohos.notification.d.ts16 import { AsyncCallback } from './basic';
49 function publish(request: NotificationRequest, callback: AsyncCallback<void>): void;
57 function cancel(id: number, callback: AsyncCallback<void>): void;
65 function cancel(id: number, label: string, callback: AsyncCallback<void>): void;
71 function cancelAll(callback: AsyncCallback<void>): void;
82 function addSlot(slot: NotificationSlot, callback: AsyncCallback<void>): void;
99 function addSlot(type: SlotType, callback: AsyncCallback<void>): void;
110 function addSlots(slots: Array<NotificationSlot>, callback: AsyncCallback<void>): void;
129 function getSlot(slotType: SlotType, callback: AsyncCallback<NotificationSlot>): void;
137 function getSlots(callback: AsyncCallback<Array<NotificationSlot>>): void;
[all …]
D@ohos.telephony.call.d.ts16 import {AsyncCallback, Callback} from "./basic";
37 function dial(phoneNumber: string, callback: AsyncCallback<boolean>): void;
38 function dial(phoneNumber: string, options: DialOptions, callback: AsyncCallback<boolean>): void;
47 function hasCall(callback: AsyncCallback<boolean>): void;
60 function getCallState(callback: AsyncCallback<CallState>): void;
71 function isEmergencyPhoneNumber(phoneNumber: string, callback: AsyncCallback<boolean>): void;
72 …umber(phoneNumber: string, options: EmergencyNumberOptions, callback: AsyncCallback<boolean>): voi…
86 function formatPhoneNumber(phoneNumber: string, callback: AsyncCallback<string>): void;
87 …neNumber(phoneNumber: string, options: NumberFormatOptions, callback: AsyncCallback<string>): void;
98 …PhoneNumberToE164(phoneNumber: string, countryCode: string, callback: AsyncCallback<string>): void;
[all …]
D@ohos.telephony.sim.d.ts16 import {AsyncCallback} from "./basic";
34 function getDefaultVoiceSlotId(callback: AsyncCallback<number>): void;
44 function getISOCountryCodeForSim(slotId: number, callback: AsyncCallback<string>): void;
57 function getSimOperatorNumeric(slotId: number, callback: AsyncCallback<string>): void;
71 function getSimSpn(slotId: number, callback: AsyncCallback<string>): void;
89 function getSimState(slotId: number, callback: AsyncCallback<SimState>): void;
105 function getSimIccId(slotId: number, callback: AsyncCallback<string>): void;
120 function getSimGid1(slotId: number, callback: AsyncCallback<string>): void;
127 function getIMSI(slotId: number, callback: AsyncCallback<string>): void;
135 function getSimAccountInfo(slotId: number, callback: AsyncCallback<IccAccountInfo>): void;
[all …]
D@ohos.systemTime.d.ts16 import { AsyncCallback, ErrorCallback } from './basic';
32 function setTime(time : number, callback : AsyncCallback<void>) : void;
41 function setDate(date: Date, callback: AsyncCallback<void>): void;
50 function setTimezone(timezone: string, callback: AsyncCallback<void>): void;
D@ohos.resourceManager.d.ts188 export interface AsyncCallback<T> { interface
198 export function getResourceManager(callback: AsyncCallback<ResourceManager>);
207 export function getResourceManager(bundleName: string, callback: AsyncCallback<ResourceManager>);
239 getString(resId: number, callback: AsyncCallback<string>);
257 getStringArray(resId: number, callback: AsyncCallback<Array<string>>);
275 getMedia(resId: number, callback: AsyncCallback<Uint8Array>);
294 getMediaBase64(resId: number, callback: AsyncCallback<string>);
311 getDeviceCapability(callback: AsyncCallback<DeviceCapability>);
328 getConfiguration(callback: AsyncCallback<Configuration>);
348 getPluralString(resId: number, num: number, callback: AsyncCallback<string>);
D@ohos.data.storage.d.ts15 import { AsyncCallback, Callback } from './basic';
38 function getStorage(path: string, callback: AsyncCallback<Storage>): void;
55 function deleteStorage(path: string, callback: AsyncCallback<void>): void;
71 function removeStorageFromCache(path: string, callback: AsyncCallback<void>): void;
99 get(key: string, defValue: ValueType, callback: AsyncCallback<ValueType>): void;
112 has(key: string, callback: AsyncCallback<boolean>): boolean;
128 put(key: string, value: ValueType, callback: AsyncCallback<void>): void;
143 delete(key: string, callback: AsyncCallback<void>): void;
156 clear(callback: AsyncCallback<void>): void;
166 flush(callback: AsyncCallback<void>): void;
D@ohos.systemparameter.d.ts16 import { AsyncCallback, BusinessError } from './basic';
44 function get(key: string, callback: AsyncCallback<string>): void;
54 function get(key: string, def: string, callback: AsyncCallback<string>): void;
83 function set(key: string, value: string, callback: AsyncCallback<void>): void;
D@ohos.app.abilityManager.d.ts16 import { AsyncCallback } from './basic';
49 function getActiveProcessInfos(callback: AsyncCallback<Array<ActiveProcessInfo>>): void;
62 …function getActiveAbilityMissionInfos(upperLimit: number, callback: AsyncCallback<Array<AbilityMis…
75 …function getPreviousAbilityMissionInfos(upperLimit: number, callback: AsyncCallback<Array<AbilityM…
87 function deleteMissions(missionIds: Array<number>, callback: AsyncCallback<void>): void;
D@ohos.telephony.sms.d.ts16 import {AsyncCallback} from "./basic";
37 …function createMessage(pdu: Array<number>, specification: string, callback: AsyncCallback<ShortMes…
63 function setDefaultSmsSlotId(slotId: number, callback: AsyncCallback<void>): void;
73 function getDefaultSmsSlotId(callback: AsyncCallback<number>): void;
86 function setSmscAddr(slotId: number, smscAddr: string, callback: AsyncCallback<void>): void;
99 function getSmscAddr(slotId: number, callback: AsyncCallback<string>): void;
107 function addSimMessage(options: SimMessageOptions, callback: AsyncCallback<void>): void;
115 function delSimMessage(slotId: number, msgIndex: number, callback: AsyncCallback<void>): void;
123 function updateSimMessage(options: UpdateSimMessageOptions, callback: AsyncCallback<void>): void;
131 function getAllSimMessages(slotId: number, callback: AsyncCallback<Array<SimShortMessage>>): void;
[all …]
D@ohos.systemTimer.d.ts16 import { AsyncCallback, ErrorCallback } from './basic';
52 function createTimer(options: TimerOptions, callback: AsyncCallback<number>): void;
63 function startTimer(timer: number, triggerTime: number, callback: AsyncCallback<void>): void;
70 function stopTimer(timer: number, callback: AsyncCallback<void>): void;
77 function destroyTimer(timer: number, callback: AsyncCallback<void>): void;
D@ohos.bundle.d.ts16 import { AsyncCallback, Callback } from './basic';
214 …function getBundleInfo(bundleName: string, bundleFlags: number, callback: AsyncCallback<BundleInfo…
226 function getBundleInstaller(callback: AsyncCallback<BundleInstaller>): void;
242 …fo(bundleName: string, bundleFlags: number, userId: number, callback: AsyncCallback<ApplicationInf…
255 …function checkPermission(bundleName: string, permission: string, callback: AsyncCallback<GrantStat…
272 …lityByWant(want: Want, bundleFlags: number, userId: number, callback: AsyncCallback<Array<AbilityI…
286 …function getAllBundleInfo(bundlelFlag: BundleFlag, callback: AsyncCallback<Array<BundleInfo>>) : v…
301 …function getAllApplicationInfo(bundleFlags: number, userId: number, callback: AsyncCallback<Array<…
316 …function getBundleArchiveInfo(hapFilePath: string, bundleFlags: number, callback: AsyncCallback<Bu…
335 function getLaunchWantForBundle(bundleName: string, callback: AsyncCallback<Want>): void;
[all …]
D@ohos.telephony.radio.d.ts16 import {AsyncCallback} from "./basic";
54 callback: AsyncCallback<{psRadioTech: RadioTechnology, csRadioTech: RadioTechnology}>): void;
67 function getNetworkState(callback: AsyncCallback<NetworkState>): void;
68 function getNetworkState(slotId: number, callback: AsyncCallback<NetworkState>): void;
82 …function getNetworkSelectionMode(slotId: number, callback: AsyncCallback<NetworkSelectionMode>): v…
89 …function setNetworkSelectionMode(options: NetworkSelectionModeOptions, callback: AsyncCallback<voi…
96 …function getNetworkSearchInformation(slotId: number, callback: AsyncCallback<NetworkSearchResult>)…
108 function getISOCountryCodeForNetwork(slotId: number, callback: AsyncCallback<string>): void;
119 …function getSignalInformation(slotId: number, callback: AsyncCallback<Array<SignalInformation>>): …
126 function isRadioOn(callback: AsyncCallback<boolean>): void;
[all …]
D@ohos.ability.featureAbility.d.ts15 import { AsyncCallback } from './basic';
41 function getWant(callback: AsyncCallback<Want>): void;
53 function startAbility(parameter: StartAbilityParameter, callback: AsyncCallback<number>): void;
73 …function startAbilityForResult(parameter: StartAbilityParameter, callback: AsyncCallback<AbilityRe…
86 function terminateSelfWithResult(parameter: AbilityResult, callback: AsyncCallback<void>): void;
97 function terminateSelf(callback: AsyncCallback<void>): void;
119 function hasWindowFocus(callback: AsyncCallback<boolean>): void;
142 function disconnectAbility(connection: number, callback:AsyncCallback<void>): void;
D@ohos.ability.particleAbility.d.ts16 import { AsyncCallback } from './basic';
38 function startAbility(parameter: StartAbilityParameter, callback: AsyncCallback<void>): void;
49 function terminateSelf(callback: AsyncCallback<void>): void;
D@ohos.multimedia.audio.d.ts16 import {ErrorCallback, AsyncCallback} from './basic';
126 setVolume(audioType: AudioVolumeType,volume: number,callback: AsyncCallback<void>): void;
138 getVolume(audioType: AudioVolumeType, callback: AsyncCallback<number>): void;
150 getMinVolume(audioType: AudioVolumeType, callback: AsyncCallback<number>): void
162 getMaxVolume(audioType: AudioVolumeType, callback: AsyncCallback<number>): void
174 getDevices(deviceFlag: DeviceFlag, callback: AsyncCallback<AudioDeviceDescriptors>): void;
D@ohos.account.distributedaccount.d.ts16 import {AsyncCallback} from './basic'
47 queryOsAccountDistributedInfo(callback: AsyncCallback<DistributedInfo>): void;
59 … updateOsAccountDistributedInfo(accountInfo: DistributedInfo, callback: AsyncCallback<void>): void;
D@ohos.runninglock.d.ts16 import {AsyncCallback} from './basic.d.ts';
89 …function isRunningLockTypeSupported(type: RunningLockType, callback: AsyncCallback<boolean>): void;
104 …function createRunningLock(name: string, type: RunningLockType, callback: AsyncCallback<RunningLoc…
D@ohos.wantAgent.d.ts16 import { AsyncCallback , Callback} from './basic';
38 function getBundleName(agent: WantAgent, callback: AsyncCallback<string>): void;
47 function getUid(agent: WantAgent, callback: AsyncCallback<number>): void;
57 function getWant(agent: WantAgent, callback: AsyncCallback<Want>): void;
73 function cancel(agent: WantAgent, callback: AsyncCallback<void>): void;
92 function equal(agent: WantAgent, otherAgent: WantAgent, callback: AsyncCallback<boolean>): void;
101 function getWantAgent(info: WantAgentInfo, callback: AsyncCallback<WantAgent>): void;
D@ohos.power.d.ts16 import {AsyncCallback} from './basic';
54 function isScreenOn(callback: AsyncCallback<boolean>): void;
D@ohos.update.d.ts16 import { AsyncCallback, BussinessError } from "./basic";
324 checkNewVersion(callback: AsyncCallback<NewVersionInfo>): void;
348 getNewVersionInfo(callback: AsyncCallback<NewVersionInfo>): void;
356 getUpdatePolicy(callback: AsyncCallback<UpdatePolicy>): void;
364 setUpdatePolicy(policy: UpdatePolicy, callback: AsyncCallback<number>): void;
372 applyNewVersion(callback: AsyncCallback<number>): void;
380 rebootAndCleanCache(callback: AsyncCallback<number>): void;
/interface/sdk-js/api/commonEvent/
DcommonEventSubscriber.d.ts15 import { AsyncCallback } from './../basic';
32 getCode(callback: AsyncCallback<number>): void;
51 setCode(code: number, callback: AsyncCallback<void>): void;
70 getData(callback: AsyncCallback<string>): void;
89 setData(data: string, callback: AsyncCallback<void>): void;
110 setCodeAndData(code: number, data: string, callback: AsyncCallback<void>): void;
130 isOrderedCommonEvent(callback: AsyncCallback<boolean>): void;
148 isStickyCommonEvent(callback: AsyncCallback<boolean>): void;
166 abortCommonEvent(callback: AsyncCallback<void>): void;
184 clearAbortCommonEvent(callback: AsyncCallback<void>): void;
[all …]
/interface/sdk-js/api/app/
Dcontext.d.ts16 import { AsyncCallback } from '../basic';
46 getOrCreateLocalDir(callback: AsyncCallback<string>): void;
62 …verifyPermission(permission: string, options: PermissionOptions, callback: AsyncCallback<number>):…
63 verifyPermission(permission: string, callback: AsyncCallback<number>): void;
73 …User(permissions: Array<string>, requestCode: number, resultCallback: AsyncCallback<PermissionRequ…
81 getApplicationInfo(callback: AsyncCallback<ApplicationInfo>): void
90 getBundleName(callback: AsyncCallback<string>): void
99 getProcessInfo(callback: AsyncCallback<ProcessInfo>): void
108 getElementName(callback: AsyncCallback<ElementName>): void
117 getProcessName(callback: AsyncCallback<string>): void
[all …]
/interface/sdk-js/api/ability/
DdataAbilityHelper.d.ts16 import { AsyncCallback } from '../basic';
44 openFile(uri: string, mode: string, callback: AsyncCallback<number>): void;
58 on(type: 'dataChange', uri: string, callback: AsyncCallback<void>): void;
71 off(type: 'dataChange', uri: string, callback?: AsyncCallback<void>): void;
82 getType(uri: string, callback: AsyncCallback<string>): void;
95 … getFileTypes(uri: string, mimeTypeFilter: string, callback: AsyncCallback<Array<string>>): void;
107 normalizeUri(uri: string, callback: AsyncCallback<string>): void;
119 denormalizeUri(uri: string, callback: AsyncCallback<string>): void;
131 notifyChange(uri: string, callback: AsyncCallback<void>): void;
144 insert(uri: string, valuesBucket: rdb.ValuesBucket, callback: AsyncCallback<number>): void;
[all …]
/interface/sdk-js/api/bundle/
DbundleInstaller.d.ts16 import { AsyncCallback } from './../basic';
93 …install(bundleFilePaths: Array<string>, param: InstallParam, callback: AsyncCallback<InstallStatus…
106 uninstall(bundleName: string, param: InstallParam, callback: AsyncCallback<InstallStatus>): void;

12