Description: OAID API fix

Feature or BugFix: BugFix
Binary Source: NA

Signed-off-by: VioletHan <hanhaiyang1@huawei.com>
This commit is contained in:
VioletHan 2023-11-14 19:24:52 +08:00
parent 2a736ba147
commit 58d286518a

View File

@ -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