mirror of
https://gitee.com/openharmony/interface_sdk-js
synced 2024-10-07 14:13:45 +00:00
call.d.ts新增接口:numberLocation,numberMarkInfo,markType
Signed-off-by: h00840185 <hehao45@huawei.com>
This commit is contained in:
parent
fdae4ec010
commit
4724fc266e
189
api/@ohos.telephony.call.d.ts
vendored
189
api/@ohos.telephony.call.d.ts
vendored
@ -3186,6 +3186,26 @@ declare namespace call {
|
||||
* @since 11
|
||||
*/
|
||||
originalCallType: number;
|
||||
|
||||
/**
|
||||
* Indicates the location of the phone number.
|
||||
*
|
||||
* @type { ?string }
|
||||
* @syscap SystemCapability.Telephony.CallManager
|
||||
* @systemapi Hide this for inner system use.
|
||||
* @since 12
|
||||
*/
|
||||
numberLocation?: string;
|
||||
|
||||
/**
|
||||
* Indicates the mark information of the phone number.
|
||||
*
|
||||
* @type { ?NumberMarkInfo }
|
||||
* @syscap SystemCapability.Telephony.CallManager
|
||||
* @systemapi Hide this for inner system use.
|
||||
* @since 12
|
||||
*/
|
||||
numberMarkInfo?: NumberMarkInfo;
|
||||
}
|
||||
|
||||
/**
|
||||
@ -5246,6 +5266,175 @@ declare namespace call {
|
||||
*/
|
||||
height: number;
|
||||
}
|
||||
|
||||
/**
|
||||
* Indicates the mark information of the phone number.
|
||||
*
|
||||
* @interface NumberMarkInfo
|
||||
* @syscap SystemCapability.Telephony.CallManager
|
||||
* @systemapi Hide this for inner system use.
|
||||
* @since 12
|
||||
*/
|
||||
export interface NumberMarkInfo {
|
||||
/**
|
||||
* Indicates the type of number mark.
|
||||
*
|
||||
* @type { MarkType }
|
||||
* @syscap SystemCapability.Telephony.CallManager
|
||||
* @systemapi Hide this for inner system use.
|
||||
* @since 12
|
||||
*/
|
||||
markType: MarkType;
|
||||
|
||||
/**
|
||||
* Indicates the content of number mark.
|
||||
*
|
||||
* @type { ?string }
|
||||
* @syscap SystemCapability.Telephony.CallManager
|
||||
* @systemapi Hide this for inner system use.
|
||||
* @since 12
|
||||
*/
|
||||
markContent?: string;
|
||||
|
||||
/**
|
||||
* Indicates the count of number mark.
|
||||
*
|
||||
* @type { ?number }
|
||||
* @syscap SystemCapability.Telephony.CallManager
|
||||
* @systemapi Hide this for inner system use.
|
||||
* @since 12
|
||||
*/
|
||||
markCount?: number;
|
||||
|
||||
/**
|
||||
* Indicates the source of number mark.
|
||||
*
|
||||
* @type { ?string }
|
||||
* @syscap SystemCapability.Telephony.CallManager
|
||||
* @systemapi Hide this for inner system use.
|
||||
* @since 12
|
||||
*/
|
||||
markSource?: string;
|
||||
|
||||
/**
|
||||
* Indicates if this is a number mark from cloud.
|
||||
*
|
||||
* @type { ?boolean }
|
||||
* @syscap SystemCapability.Telephony.CallManager
|
||||
* @systemapi Hide this for inner system use.
|
||||
* @since 12
|
||||
*/
|
||||
isCloud?: boolean;
|
||||
}
|
||||
|
||||
/**
|
||||
* Indicates the type of the number mark.
|
||||
*
|
||||
* @enum { number }
|
||||
* @syscap SystemCapability.Telephony.CallManager
|
||||
* @systemapi Hide this for inner system use.
|
||||
* @since 12
|
||||
*/
|
||||
export enum MarkType {
|
||||
/**
|
||||
* Indicates the mark is none.
|
||||
*
|
||||
* @syscap SystemCapability.Telephony.CallManager
|
||||
* @systemapi Hide this for inner system use.
|
||||
* @since 12
|
||||
*/
|
||||
MARK_TYPE_NONE = 0,
|
||||
|
||||
/**
|
||||
* Indicates the mark is crank.
|
||||
*
|
||||
* @syscap SystemCapability.Telephony.CallManager
|
||||
* @systemapi Hide this for inner system use.
|
||||
* @since 12
|
||||
*/
|
||||
MARK_TYPE_CRANK = 1,
|
||||
|
||||
/**
|
||||
* Indicates the mark is fraud.
|
||||
*
|
||||
* @syscap SystemCapability.Telephony.CallManager
|
||||
* @systemapi Hide this for inner system use.
|
||||
* @since 12
|
||||
*/
|
||||
MARK_TYPE_FRAUD = 2,
|
||||
|
||||
/**
|
||||
* Indicates the mark is express.
|
||||
*
|
||||
* @syscap SystemCapability.Telephony.CallManager
|
||||
* @systemapi Hide this for inner system use.
|
||||
* @since 12
|
||||
*/
|
||||
MARK_TYPE_EXPRESS = 3,
|
||||
|
||||
/**
|
||||
* Indicates the mark is promote sales.
|
||||
*
|
||||
* @syscap SystemCapability.Telephony.CallManager
|
||||
* @systemapi Hide this for inner system use.
|
||||
* @since 12
|
||||
*/
|
||||
MARK_TYPE_PROMOTE_SALES = 4,
|
||||
|
||||
/**
|
||||
* Indicates the mark is house agent.
|
||||
*
|
||||
* @syscap SystemCapability.Telephony.CallManager
|
||||
* @systemapi Hide this for inner system use.
|
||||
* @since 12
|
||||
*/
|
||||
MARK_TYPE_HOUSE_AGENT = 5,
|
||||
|
||||
/**
|
||||
* Indicates the mark is insurance.
|
||||
*
|
||||
* @syscap SystemCapability.Telephony.CallManager
|
||||
* @systemapi Hide this for inner system use.
|
||||
* @since 12
|
||||
*/
|
||||
MARK_TYPE_INSURANCE = 6,
|
||||
|
||||
/**
|
||||
* Indicates the mark is taxi.
|
||||
*
|
||||
* @syscap SystemCapability.Telephony.CallManager
|
||||
* @systemapi Hide this for inner system use.
|
||||
* @since 12
|
||||
*/
|
||||
MARK_TYPE_TAXI = 7,
|
||||
|
||||
/**
|
||||
* Indicates the mark is custom.
|
||||
*
|
||||
* @syscap SystemCapability.Telephony.CallManager
|
||||
* @systemapi Hide this for inner system use.
|
||||
* @since 12
|
||||
*/
|
||||
MARK_TYPE_CUSTOM = 8,
|
||||
|
||||
/**
|
||||
* Indicates the mark is others.
|
||||
*
|
||||
* @syscap SystemCapability.Telephony.CallManager
|
||||
* @systemapi Hide this for inner system use.
|
||||
* @since 12
|
||||
*/
|
||||
MARK_TYPE_OTHERS = 9,
|
||||
|
||||
/**
|
||||
* Indicates the mark is yellow page.
|
||||
*
|
||||
* @syscap SystemCapability.Telephony.CallManager
|
||||
* @systemapi Hide this for inner system use.
|
||||
* @since 12
|
||||
*/
|
||||
MARK_TYPE_YELLOW_PAGE = 10
|
||||
}
|
||||
}
|
||||
|
||||
export default call;
|
||||
|
Loading…
Reference in New Issue
Block a user