mirror of
https://gitee.com/openharmony/interface_sdk-js
synced 2024-10-07 14:13:45 +00:00
Description: OAID API fix
Feature or BugFix: BugFix Binary Source: NA Signed-off-by: VioletHan <hanhaiyang1@huawei.com>
This commit is contained in:
parent
2a736ba147
commit
58d286518a
8
api/@ohos.identifier.oaid.d.ts
vendored
8
api/@ohos.identifier.oaid.d.ts
vendored
@ -24,7 +24,7 @@ import type { AsyncCallback } from './@ohos.base';
|
||||
declare namespace identifier {
|
||||
/**
|
||||
* Obtain the OAID with callback.
|
||||
* Obtaining OAID requires the permission:ohos.permission.APP_TRACKING_CONSENT, or the obtained OAID is empty.
|
||||
* Obtaining OAID requires the permission:ohos.permission.APP_TRACKING_CONSENT, otherwise the obtained OAID is 00000000-0000-0000-0000-000000000000.
|
||||
* @permission ohos.permission.APP_TRACKING_CONSENT
|
||||
* @param { AsyncCallback<string> } callback - The callback to get the OAID.
|
||||
* @throws { BusinessError } 17300001 - System internal error.
|
||||
@ -34,10 +34,10 @@ declare namespace identifier {
|
||||
function getOAID(callback: AsyncCallback<string>): void;
|
||||
|
||||
/**
|
||||
* Obtain the OAID asynchronously.
|
||||
* Obtaining OAID requires the permission:ohos.permission.APP_TRACKING_CONSENT, or the obtained OAID is empty.
|
||||
* Obtain the OAID with promise.
|
||||
* Obtaining OAID requires the permission:ohos.permission.APP_TRACKING_CONSENT, or the obtained OAID is 00000000-0000-0000-0000-000000000000.
|
||||
* @permission ohos.permission.APP_TRACKING_CONSENT
|
||||
* @returns { Promise<string> } Returns the OAID.
|
||||
* @returns { Promise<string> } promise - Returns the OAID.
|
||||
* @throws { BusinessError } 17300001 - System internal error.
|
||||
* @syscap SystemCapability.Advertising.OAID
|
||||
* @since 10
|
||||
|
Loading…
Reference in New Issue
Block a user