Language

CTQuickSwitchManager.GetPhoneNumberState Method

Definition

Gets the quick-switch state for a phone number whose suffix matches the provided value.

[Foundation.Export("getPhoneNumberStateForSuffix:completion:")]
[ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)]
public virtual void GetPhoneNumberState(string phoneNumberSuffix, CoreTelephony.CTQuickSwitchManagerStateCompletionHandler completionHandler);
[<Foundation.Export("getPhoneNumberStateForSuffix:completion:")>]
[<ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)>]
abstract member GetPhoneNumberState : string * CoreTelephony.CTQuickSwitchManagerStateCompletionHandler -> unit
override this.GetPhoneNumberState : string * CoreTelephony.CTQuickSwitchManagerStateCompletionHandler -> unit

Parameters

phoneNumberSuffix
String

The last four digits of the phone number whose state to query.

completionHandler
CTQuickSwitchManagerStateCompletionHandler

The handler to invoke with the quick-switch state or an error.

Attributes

Remarks

The framework presents a consent screen. If the user denies consent, the operation returns NotEnrolled without an error.

Applies to