telephony_data.h
Overview
Defines C APIs for cellular data module.
File to include: <telephony/cellular_data/telephony_data.h>
Library: libtelephony_data.so
System capability: SystemCapability.Telephony.CellularData
Since: 13
Related module: Telephony
Summary
Functions
| Name | Description |
|---|---|
| int32_t OH_Telephony_GetDefaultCellularDataSlotId(void) | Obtains the default SIM card used for mobile data. |
Function Description
OH_Telephony_GetDefaultCellularDataSlotId()
int32_t OH_Telephony_GetDefaultCellularDataSlotId(void)
Description
Obtains the default SIM card used for mobile data.
System capability: SystemCapability.Telephony.CellularData
Since: 13
Returns
| Type | Description |
|---|---|
| int32_t | Default SIM card used for mobile data. The value 0 indicates card slot 1, and the value 1 indicates card slot 2. |
你可能感兴趣的鸿蒙文章
openharmony 鸿蒙 js-apis-sms-sys
openharmony 鸿蒙 capi-telephony-radio-type-h
openharmony 鸿蒙 js-apis-sim-sys
openharmony 鸿蒙 js-apis-telephony-data-sys
openharmony 鸿蒙 js-apis-observer-sys
openharmony 鸿蒙 ndk-apis-telephony-radio