mirror of
https://gitee.com/openharmony/interface_sdk-js
synced 2024-10-07 14:13:45 +00:00
告警信息处理
Signed-off-by: liuxiyao223 <liuxiyao223@huawei.com>
This commit is contained in:
parent
946edd67d5
commit
cdf31174be
2
api/@ohos.telephony.call.d.ts
vendored
2
api/@ohos.telephony.call.d.ts
vendored
@ -13,7 +13,7 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
import { AsyncCallback, Callback } from "./@ohos.base";
|
||||
import type { AsyncCallback, Callback } from './@ohos.base';
|
||||
|
||||
/**
|
||||
* Provides methods related to call management.
|
||||
|
2
api/@ohos.telephony.data.d.ts
vendored
2
api/@ohos.telephony.data.d.ts
vendored
@ -13,7 +13,7 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
import { AsyncCallback } from "./@ohos.base";
|
||||
import type { AsyncCallback } from './@ohos.base';
|
||||
|
||||
/**
|
||||
* Provides methods related to cellular data services.
|
||||
|
31
api/@ohos.telephony.observer.d.ts
vendored
31
api/@ohos.telephony.observer.d.ts
vendored
@ -13,11 +13,11 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
import { Callback } from "./@ohos.base";
|
||||
import radio from "./@ohos.telephony.radio";
|
||||
import data from "./@ohos.telephony.data";
|
||||
import call from "./@ohos.telephony.call";
|
||||
import sim from "./@ohos.telephony.sim";
|
||||
import type { Callback } from './@ohos.base';
|
||||
import type radio from './@ohos.telephony.radio';
|
||||
import type data from './@ohos.telephony.data';
|
||||
import type call from './@ohos.telephony.call';
|
||||
import type sim from './@ohos.telephony.sim';
|
||||
|
||||
/**
|
||||
* Monitors telephony state updates of a device, including updates of the network state,
|
||||
@ -31,7 +31,9 @@ declare namespace observer {
|
||||
type NetworkState = radio.NetworkState;
|
||||
type SignalInformation = radio.SignalInformation;
|
||||
/**
|
||||
* @syscap SystemCapability.Telephony.StateRegistry
|
||||
* @systemapi Hide this for inner system use.
|
||||
* @since 6
|
||||
*/
|
||||
type CellInformation = radio.CellInformation;
|
||||
type DataConnectState = data.DataConnectState;
|
||||
@ -64,7 +66,7 @@ declare namespace observer {
|
||||
*
|
||||
* @permission ohos.permission.GET_NETWORK_INFO
|
||||
* @param { 'networkStateChange' } type - Event type. Indicates the networkStateChange event to be subscribed to.
|
||||
* @param { { slotId: number } } options - Indicates the ID of the target card slot.
|
||||
* @param { object } options - Indicates the ID of the target card slot.
|
||||
* The value {@code 0} indicates card 1, and the value {@code 1} indicates card 2.
|
||||
* @param { Callback<NetworkState> } callback - Indicates the callback for getting
|
||||
* an instance of the {@code NetworkState} class.
|
||||
@ -82,8 +84,9 @@ declare namespace observer {
|
||||
/**
|
||||
* Cancel callback when the network state is updated.
|
||||
*
|
||||
* @param { string } type - networkStateChange.
|
||||
* @param { 'networkStateChange' } type - Event type. Indicates the networkStateChange event to unsubscribe from.
|
||||
* @param { Callback<NetworkState> } callback - Indicates the callback for getting
|
||||
* an instance of the {@code NetworkState} class.
|
||||
* @throws { BusinessError } 401 - Parameter error.
|
||||
* @throws { BusinessError } 8300001 - Invalid parameter value.
|
||||
* @throws { BusinessError } 8300002 - Operation failed. Cannot connect to service.
|
||||
@ -114,7 +117,7 @@ declare namespace observer {
|
||||
* Callback when the signal strength corresponding to a monitored {@code slotId} is updated.
|
||||
*
|
||||
* @param { 'signalInfoChange' } type - Event type. Indicates the signalInfoChange event to be subscribed to.
|
||||
* @param { { slotId: number } } options - Indicates the ID of the target card slot.
|
||||
* @param { object } options - Indicates the ID of the target card slot.
|
||||
* The value {@code 0} indicates card 1, and the value {@code 1} indicates card 2.
|
||||
* @param { Callback<Array<SignalInformation>> } callback - Indicates the callback for getting
|
||||
* an array of instances of the classes derived from {@link SignalInformation}.
|
||||
@ -132,7 +135,7 @@ declare namespace observer {
|
||||
* Cancel callback when the signal strength is updated.
|
||||
*
|
||||
* @param { 'signalInfoChange' } type - Event type. Indicates the signalInfoChange event to unsubscribe from.
|
||||
* @param { Callback<SignalInformation> } callback - Indicates the callback to unsubscribe from
|
||||
* @param { Callback<Array<SignalInformation>> } callback - Indicates the callback to unsubscribe from
|
||||
* the signalInfoChange event.
|
||||
* @throws { BusinessError } 401 - Parameter error.
|
||||
* @throws { BusinessError } 8300001 - Invalid parameter value.
|
||||
@ -169,7 +172,7 @@ declare namespace observer {
|
||||
*
|
||||
* @permission ohos.permission.LOCATION and ohos.permission.APPROXIMATELY_LOCATION
|
||||
* @param { 'cellInfoChange' } type - Event type. Indicates the cellInfoChange event to be subscribed to.
|
||||
* @param { { slotId: number } } options - Indicates the ID of the target card slot.
|
||||
* @param { object } options - Indicates the ID of the target card slot.
|
||||
* The value {@code 0} indicates card 1, and the value {@code 1} indicates card 2.
|
||||
* @param { Callback<Array<CellInformation>> } callback - Indicates the callback for getting
|
||||
* an array of instances of the classes derived from {@link CellInformation}.
|
||||
@ -228,7 +231,7 @@ declare namespace observer {
|
||||
*
|
||||
* @param { 'cellularDataConnectionStateChange' } type - Event type. Indicates the cellularDataConnectionStateChange
|
||||
* event to be subscribed to.
|
||||
* @param { { slotId: number } } options - Indicates the ID of the target card slot.
|
||||
* @param { object } options - Indicates the ID of the target card slot.
|
||||
* The value {@code 0} indicates card 1, and the value {@code 1} indicates card 2.
|
||||
* @param { Callback<{ state: DataConnectState, network: RatType }> } callback - Indicates the callback for
|
||||
* getting the cellular data link connection state, and networkType Indicates the radio access technology for
|
||||
@ -283,7 +286,7 @@ declare namespace observer {
|
||||
* corresponding to the monitored {@code slotId} is updated.
|
||||
*
|
||||
* @param { 'cellularDataFlowChange' } type - Event type. Indicates the cellularDataFlowChange event to be subscribed to.
|
||||
* @param { { slotId: number } } options - Indicates the ID of the target card slot.
|
||||
* @param { object } options - Indicates the ID of the target card slot.
|
||||
* The value {@code 0} indicates card 1, and the value {@code 1} indicates card 2.
|
||||
* @param { Callback<DataFlowType> } callback - Indicates the callback for getting the cellular data flow state.
|
||||
* @throws { BusinessError } 401 - Parameter error.
|
||||
@ -332,7 +335,7 @@ declare namespace observer {
|
||||
* Callback when the call state corresponding to the monitored {@code slotId} is updated.
|
||||
*
|
||||
* @param { 'callStateChange' } type - Event type. Indicates the callStateChange event to be subscribed to.
|
||||
* @param { { slotId: number } } options - Indicates the ID of the target card slot.
|
||||
* @param { object } options - Indicates the ID of the target card slot.
|
||||
* The value {@code 0} indicates card 1, and the value {@code 1} indicates card 2.
|
||||
* @param { Callback<{ state: CallState, number: string }> } callback - Indicates the callback for
|
||||
* getting the call state and the called number.
|
||||
@ -382,7 +385,7 @@ declare namespace observer {
|
||||
* Callback when the sim state corresponding to the monitored {@code slotId} is updated.
|
||||
*
|
||||
* @param { 'simStateChange' } type - Event type. Indicates the simStateChange event to be subscribed to.
|
||||
* @param { { slotId: number } } options - Indicates the ID of the target card slot.
|
||||
* @param { object } options - Indicates the ID of the target card slot.
|
||||
* The value {@code 0} indicates card 1, and the value {@code 1} indicates card 2.
|
||||
* @param { Callback<SimStateData> } callback - Indicates the callback for getting the SimStateData object.
|
||||
* @throws { BusinessError } 401 - Parameter error.
|
||||
|
6
api/@ohos.telephony.radio.d.ts
vendored
6
api/@ohos.telephony.radio.d.ts
vendored
@ -13,7 +13,7 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
import { AsyncCallback, Callback } from "./@ohos.base";
|
||||
import type { AsyncCallback, Callback } from './@ohos.base';
|
||||
|
||||
/**
|
||||
* Provides interfaces for applications to obtain the network state, cell information, signal information,
|
||||
@ -840,7 +840,7 @@ declare namespace radio {
|
||||
* @syscap SystemCapability.Telephony.CoreService
|
||||
* @since 7
|
||||
*/
|
||||
function isRadioOn(slotId: number, callback: AsyncCallback<boolean>): void
|
||||
function isRadioOn(slotId: number, callback: AsyncCallback<boolean>): void;
|
||||
|
||||
/**
|
||||
* Checks whether the radio service is enabled.
|
||||
@ -2206,7 +2206,7 @@ declare namespace radio {
|
||||
* @since 8
|
||||
*/
|
||||
data: CdmaCellInformation | GsmCellInformation | LteCellInformation | NrCellInformation | TdscdmaCellInformation
|
||||
| WcdmaCellInformation;
|
||||
| WcdmaCellInformation;
|
||||
}
|
||||
|
||||
/**
|
||||
|
42
api/@ohos.telephony.sim.d.ts
vendored
42
api/@ohos.telephony.sim.d.ts
vendored
@ -13,7 +13,7 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
import { AsyncCallback } from "./@ohos.base";
|
||||
import type { AsyncCallback } from './@ohos.base';
|
||||
|
||||
/**
|
||||
* Provides applications with APIs for obtaining SIM card status, card file information, and card specifications.
|
||||
@ -2526,7 +2526,7 @@ declare namespace sim {
|
||||
* @systemapi Hide this for inner system use.
|
||||
* @since 9
|
||||
*/
|
||||
KEY_VOICE_MAIL_NUMBER_STRING = "voice_mail_number_string",
|
||||
KEY_VOICE_MAIL_NUMBER_STRING = 'voice_mail_number_string',
|
||||
|
||||
/**
|
||||
* Indicates the status of ims switch.
|
||||
@ -2535,7 +2535,7 @@ declare namespace sim {
|
||||
* @systemapi Hide this for inner system use.
|
||||
* @since 9
|
||||
*/
|
||||
KEY_IMS_SWITCH_ON_BY_DEFAULT_BOOL = "ims_switch_on_by_default_bool",
|
||||
KEY_IMS_SWITCH_ON_BY_DEFAULT_BOOL = 'ims_switch_on_by_default_bool',
|
||||
|
||||
/**
|
||||
* Indicates whether the ims switch status is hidden.
|
||||
@ -2544,7 +2544,7 @@ declare namespace sim {
|
||||
* @systemapi Hide this for inner system use.
|
||||
* @since 9
|
||||
*/
|
||||
KEY_HIDE_IMS_SWITCH_BOOL = "hide_ims_switch_bool",
|
||||
KEY_HIDE_IMS_SWITCH_BOOL = 'hide_ims_switch_bool',
|
||||
|
||||
/**
|
||||
* Indicates whether volte mode is supported.
|
||||
@ -2553,7 +2553,7 @@ declare namespace sim {
|
||||
* @systemapi Hide this for inner system use.
|
||||
* @since 9
|
||||
*/
|
||||
KEY_VOLTE_SUPPORTED_BOOL = "volte_supported_bool",
|
||||
KEY_VOLTE_SUPPORTED_BOOL = 'volte_supported_bool',
|
||||
|
||||
/**
|
||||
* Indicates the list supported by nr mode.
|
||||
@ -2562,7 +2562,7 @@ declare namespace sim {
|
||||
* @systemapi Hide this for inner system use.
|
||||
* @since 9
|
||||
*/
|
||||
KEY_NR_MODE_SUPPORTED_LIST_INT_ARRAY = "nr_mode_supported_list_int_array",
|
||||
KEY_NR_MODE_SUPPORTED_LIST_INT_ARRAY = 'nr_mode_supported_list_int_array',
|
||||
|
||||
/**
|
||||
* Indicates whether VOLTE supports configuration.
|
||||
@ -2571,7 +2571,7 @@ declare namespace sim {
|
||||
* @systemapi Hide this for inner system use.
|
||||
* @since 9
|
||||
*/
|
||||
KEY_VOLTE_PROVISIONING_SUPPORTED_BOOL = "volte_provisioning_supported_bool",
|
||||
KEY_VOLTE_PROVISIONING_SUPPORTED_BOOL = 'volte_provisioning_supported_bool',
|
||||
|
||||
/**
|
||||
* Indicates whether SS service supports UT.
|
||||
@ -2580,7 +2580,7 @@ declare namespace sim {
|
||||
* @systemapi Hide this for inner system use.
|
||||
* @since 9
|
||||
*/
|
||||
KEY_SS_OVER_UT_SUPPORTED_BOOL = "ss_over_ut_supported_bool",
|
||||
KEY_SS_OVER_UT_SUPPORTED_BOOL = 'ss_over_ut_supported_bool',
|
||||
|
||||
/**
|
||||
* Indicates whether the IMS requires GBA.
|
||||
@ -2589,7 +2589,7 @@ declare namespace sim {
|
||||
* @systemapi Hide this for inner system use.
|
||||
* @since 9
|
||||
*/
|
||||
KEY_IMS_GBA_REQUIRED_BOOL = "ims_gba_required_bool",
|
||||
KEY_IMS_GBA_REQUIRED_BOOL = 'ims_gba_required_bool',
|
||||
|
||||
/**
|
||||
* Indicates whether UT configuration is supported.
|
||||
@ -2598,7 +2598,7 @@ declare namespace sim {
|
||||
* @systemapi Hide this for inner system use.
|
||||
* @since 9
|
||||
*/
|
||||
KEY_UT_PROVISIONING_SUPPORTED_BOOL = "ut_provisioning_supported_bool",
|
||||
KEY_UT_PROVISIONING_SUPPORTED_BOOL = 'ut_provisioning_supported_bool',
|
||||
|
||||
/**
|
||||
* Indicates the ims emergency preference.
|
||||
@ -2607,7 +2607,7 @@ declare namespace sim {
|
||||
* @systemapi Hide this for inner system use.
|
||||
* @since 9
|
||||
*/
|
||||
KEY_IMS_PREFER_FOR_EMERGENCY_BOOL = "ims_prefer_for_emergency_bool",
|
||||
KEY_IMS_PREFER_FOR_EMERGENCY_BOOL = 'ims_prefer_for_emergency_bool',
|
||||
|
||||
/**
|
||||
* Indicates call waiting service.
|
||||
@ -2616,7 +2616,7 @@ declare namespace sim {
|
||||
* @systemapi Hide this for inner system use.
|
||||
* @since 9
|
||||
*/
|
||||
KEY_CALL_WAITING_SERVICE_CLASS_INT = "call_waiting_service_class_int",
|
||||
KEY_CALL_WAITING_SERVICE_CLASS_INT = 'call_waiting_service_class_int',
|
||||
|
||||
/**
|
||||
* Indicates call forwarding visibility.
|
||||
@ -2625,7 +2625,7 @@ declare namespace sim {
|
||||
* @systemapi Hide this for inner system use.
|
||||
* @since 9
|
||||
*/
|
||||
KEY_CALL_TRANSFER_VISIBILITY_BOOL = "call_transfer_visibility_bool",
|
||||
KEY_CALL_TRANSFER_VISIBILITY_BOOL = 'call_transfer_visibility_bool',
|
||||
|
||||
/**
|
||||
* Indicates the list of ims call end reasons.
|
||||
@ -2635,7 +2635,7 @@ declare namespace sim {
|
||||
* @since 9
|
||||
*/
|
||||
KEY_IMS_CALL_DISCONNECT_REASON_INFO_MAPPING_STRING_ARRAY =
|
||||
"ims_call_disconnect_reason_info_mapping_string_array",
|
||||
'ims_call_disconnect_reason_info_mapping_string_array',
|
||||
|
||||
/**
|
||||
* Indicates the forced Volte switch on state.
|
||||
@ -2644,7 +2644,7 @@ declare namespace sim {
|
||||
* @systemapi Hide this for inner system use.
|
||||
* @since 9
|
||||
*/
|
||||
KEY_FORCE_VOLTE_SWITCH_ON_BOOL = "force_volte_switch_on_bool",
|
||||
KEY_FORCE_VOLTE_SWITCH_ON_BOOL = 'force_volte_switch_on_bool',
|
||||
|
||||
/**
|
||||
* Indicates whether the operator name is displayed.
|
||||
@ -2653,7 +2653,7 @@ declare namespace sim {
|
||||
* @systemapi Hide this for inner system use.
|
||||
* @since 9
|
||||
*/
|
||||
KEY_ENABLE_OPERATOR_NAME_CUST_BOOL = "enable_operator_name_cust_bool",
|
||||
KEY_ENABLE_OPERATOR_NAME_CUST_BOOL = 'enable_operator_name_cust_bool',
|
||||
|
||||
/**
|
||||
* Indicates the name of the operator.
|
||||
@ -2662,7 +2662,7 @@ declare namespace sim {
|
||||
* @systemapi Hide this for inner system use.
|
||||
* @since 9
|
||||
*/
|
||||
KEY_OPERATOR_NAME_CUST_STRING = "operator_name_cust_string",
|
||||
KEY_OPERATOR_NAME_CUST_STRING = 'operator_name_cust_string',
|
||||
|
||||
/**
|
||||
* Indicates the spn display rule.
|
||||
@ -2671,7 +2671,7 @@ declare namespace sim {
|
||||
* @systemapi Hide this for inner system use.
|
||||
* @since 9
|
||||
*/
|
||||
KEY_SPN_DISPLAY_CONDITION_CUST_INT = "spn_display_condition_cust_int",
|
||||
KEY_SPN_DISPLAY_CONDITION_CUST_INT = 'spn_display_condition_cust_int',
|
||||
|
||||
/**
|
||||
* Indicates the PLMN name.
|
||||
@ -2680,7 +2680,7 @@ declare namespace sim {
|
||||
* @systemapi Hide this for inner system use.
|
||||
* @since 9
|
||||
*/
|
||||
KEY_PNN_CUST_STRING_ARRAY = "pnn_cust_string_array",
|
||||
KEY_PNN_CUST_STRING_ARRAY = 'pnn_cust_string_array',
|
||||
|
||||
/**
|
||||
* Indicates operator PLMN information.
|
||||
@ -2689,7 +2689,7 @@ declare namespace sim {
|
||||
* @systemapi Hide this for inner system use.
|
||||
* @since 9
|
||||
*/
|
||||
KEY_OPL_CUST_STRING_ARRAY = "opl_cust_string_array",
|
||||
KEY_OPL_CUST_STRING_ARRAY = 'opl_cust_string_array',
|
||||
|
||||
/**
|
||||
* Indicates the emergency call list.
|
||||
@ -2698,7 +2698,7 @@ declare namespace sim {
|
||||
* @systemapi Hide this for inner system use.
|
||||
* @since 9
|
||||
*/
|
||||
KEY_EMERGENCY_CALL_STRING_ARRAY = "emergency_call_string_array",
|
||||
KEY_EMERGENCY_CALL_STRING_ARRAY = 'emergency_call_string_array',
|
||||
}
|
||||
}
|
||||
|
||||
|
2
api/@ohos.telephony.sms.d.ts
vendored
2
api/@ohos.telephony.sms.d.ts
vendored
@ -13,7 +13,7 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
import { AsyncCallback } from "./@ohos.base";
|
||||
import type { AsyncCallback } from './@ohos.base';
|
||||
|
||||
/**
|
||||
* Provides the capabilities and methods for obtaining Short Message Service (SMS) management objects.
|
||||
|
Loading…
Reference in New Issue
Block a user