Share via


CarrierConfigManager.NotifyConfigChangedForSubId(Int32) Method

Definition

Calling this method triggers telephony services to fetch the current carrier configuration.

[Android.Runtime.Register("notifyConfigChangedForSubId", "(I)V", "GetNotifyConfigChangedForSubId_IHandler", ApiSince=23)]
[Android.Runtime.RequiresPermission("android.permission.MODIFY_PHONE_STATE")]
public virtual void NotifyConfigChangedForSubId (int subId);
[<Android.Runtime.Register("notifyConfigChangedForSubId", "(I)V", "GetNotifyConfigChangedForSubId_IHandler", ApiSince=23)>]
[<Android.Runtime.RequiresPermission("android.permission.MODIFY_PHONE_STATE")>]
abstract member NotifyConfigChangedForSubId : int -> unit
override this.NotifyConfigChangedForSubId : int -> unit

Parameters

subId
Int32
Attributes

Remarks

Calling this method triggers telephony services to fetch the current carrier configuration.

Normally this does not need to be called because the platform reloads config on its own. This should be called by a carrier service app if it wants to update config at an arbitrary moment.

Requires Permission: android.Manifest.permission#MODIFY_PHONE_STATE MODIFY_PHONE_STATE, or the calling app has carrier privileges (see TelephonyManager#hasCarrierPrivileges()).

This method returns before the reload has completed, and android.service.carrier.CarrierService#onLoadConfig will be called from an arbitrary thread.

Java documentation for android.telephony.CarrierConfigManager.notifyConfigChangedForSubId(int).

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