Partager via


CarrierConfigManager.KeyCarrierServiceNameStringArray Field

Definition

String array containing the list of names for service numbers provided by carriers.

[Android.Runtime.Register("KEY_CARRIER_SERVICE_NAME_STRING_ARRAY", ApiSince=34)]
public const string KeyCarrierServiceNameStringArray;
[<Android.Runtime.Register("KEY_CARRIER_SERVICE_NAME_STRING_ARRAY", ApiSince=34)>]
val mutable KeyCarrierServiceNameStringArray : string

Field Value

Attributes

Remarks

String array containing the list of names for service numbers provided by carriers. This key should be used with #KEY_CARRIER_SERVICE_NUMBER_STRING_ARRAY. The names provided in this array will be mapped 1:1 with the numbers provided in the #KEY_CARRIER_SERVICE_NUMBER_STRING_ARRAY array.

The data would be considered valid if and only if:

<ul> <li>The number of items in both the arrays are equal <li>The data added to the #KEY_CARRIER_SERVICE_NUMBER_STRING_ARRAY array is valid. See #KEY_CARRIER_SERVICE_NUMBER_STRING_ARRAY for more information. </ul>

Example:

<code>
<string-array name="carrier_service_name_array" num="2">
<item value="Police"/>
<item value="Ambulance"/>
</string-array>
</code>

Java documentation for android.telephony.CarrierConfigManager.KEY_CARRIER_SERVICE_NAME_STRING_ARRAY.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to