Condividi tramite


TelephonyManager.GetNetworkSlicingConfiguration Method

Definition

Request to get the current slicing configuration including URSP rules and NSSAIs (configured, allowed and rejected).

[Android.Runtime.Register("getNetworkSlicingConfiguration", "(Ljava/util/concurrent/Executor;Landroid/os/OutcomeReceiver;)V", "GetGetNetworkSlicingConfiguration_Ljava_util_concurrent_Executor_Landroid_os_OutcomeReceiver_Handler", ApiSince=31)]
[Android.Runtime.RequiresPermission("android.permission.READ_PRIVILEGED_PHONE_STATE")]
public virtual void GetNetworkSlicingConfiguration (Java.Util.Concurrent.IExecutor executor, Android.OS.IOutcomeReceiver callback);
[<Android.Runtime.Register("getNetworkSlicingConfiguration", "(Ljava/util/concurrent/Executor;Landroid/os/OutcomeReceiver;)V", "GetGetNetworkSlicingConfiguration_Ljava_util_concurrent_Executor_Landroid_os_OutcomeReceiver_Handler", ApiSince=31)>]
[<Android.Runtime.RequiresPermission("android.permission.READ_PRIVILEGED_PHONE_STATE")>]
abstract member GetNetworkSlicingConfiguration : Java.Util.Concurrent.IExecutor * Android.OS.IOutcomeReceiver -> unit
override this.GetNetworkSlicingConfiguration : Java.Util.Concurrent.IExecutor * Android.OS.IOutcomeReceiver -> unit

Parameters

executor
IExecutor

the executor on which callback will be invoked.

callback
IOutcomeReceiver

a callback to receive the current slicing configuration.

Attributes

Remarks

Request to get the current slicing configuration including URSP rules and NSSAIs (configured, allowed and rejected).

This method can be invoked if one of the following requirements is met: <ul> <li>If the calling app has been granted the READ_PRIVILEGED_PHONE_STATE permission; this is a privileged permission that can only be granted to apps preloaded on the device. <li>If the calling app has carrier privileges (see #hasCarrierPrivileges). </ul>

This will be invalid if the device does not support android.telephony.TelephonyManager#CAPABILITY_SLICING_CONFIG_SUPPORTED.

Java documentation for android.telephony.TelephonyManager.getNetworkSlicingConfiguration(java.util.concurrent.Executor, android.os.OutcomeReceiver<android.telephony.data.NetworkSlicingConfig, android.telephony.TelephonyManager.NetworkSlicingException>).

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