TelephonyManager.GetCarrierRestrictionStatus(IExecutor, IConsumer) Metodo
Definizione
Importante
Alcune informazioni sono relative alla release non definitiva del prodotto, che potrebbe subire modifiche significative prima della release definitiva. Microsoft non riconosce alcuna garanzia, espressa o implicita, in merito alle informazioni qui fornite.
Ottenere lo stato di restrizione del vettore del dispositivo.
[Android.Runtime.Register("getCarrierRestrictionStatus", "(Ljava/util/concurrent/Executor;Ljava/util/function/Consumer;)V", "GetGetCarrierRestrictionStatus_Ljava_util_concurrent_Executor_Ljava_util_function_Consumer_Handler", ApiSince=34)]
public virtual void GetCarrierRestrictionStatus(Java.Util.Concurrent.IExecutor executor, Java.Util.Functions.IConsumer resultListener);
[<Android.Runtime.Register("getCarrierRestrictionStatus", "(Ljava/util/concurrent/Executor;Ljava/util/function/Consumer;)V", "GetGetCarrierRestrictionStatus_Ljava_util_concurrent_Executor_Ljava_util_function_Consumer_Handler", ApiSince=34)>]
abstract member GetCarrierRestrictionStatus : Java.Util.Concurrent.IExecutor * Java.Util.Functions.IConsumer -> unit
override this.GetCarrierRestrictionStatus : Java.Util.Concurrent.IExecutor * Java.Util.Functions.IConsumer -> unit
Parametri
- executor
- IExecutor
Executor in cui verrà chiamato il listener dei risultati.
- resultListener
- IConsumer
Consumer che verrà chiamato con il risultato dello stato di restrizione del vettore recuperato dalla radio
- Attributi
Commenti
Ottenere lo stato di restrizione del vettore del dispositivo.
Per recuperare lo stato di restrizione del vettore del dispositivo, l'applicazione chiamante deve essere consentita qui in Android. L'applicazione chiamante richiede anche l'autorizzazione READ_PHONE_STATE. Il valore restituito dell'API è il seguente.
<ul>li return if the caller and the device locked by the network are same</li return>#CARRIER_RESTRICTION_STATUS_RESTRICTED>< if the caller and the device locked by the network are different</li><return #CARRIER_RESTRICTION_STATUS_NOT_RESTRICTED>if the device is not locked</li><li>return #CARRIER_RESTRICTION_STATUS_UNKNOWN if the device locking state is unavailable or radio does not supports the feature</li<>/ul #CARRIER_RESTRICTION_STATUS_RESTRICTED_TO_CALLER><>
Le parti di questa pagina sono modifiche basate sul lavoro creato e condiviso dalla e usati in base ai termini descritti in Creative License 2.5 Attribution License.