Language

CTCellularPlanStatus.GetAuthorizationStatusAsync(String) Method

Definition

Gets the current authorization status for a phone number without presenting any UI.

[ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)]
public static System.Threading.Tasks.Task<CoreTelephony.CTCellularPlanStatusAuthorization> GetAuthorizationStatusAsync(string phoneNumber);
[<ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)>]
static member GetAuthorizationStatusAsync : string -> System.Threading.Tasks.Task<CoreTelephony.CTCellularPlanStatusAuthorization>

Parameters

phoneNumber
String

A phone number in E.164 format, such as +15550001234.

Returns

A task that represents the asynchronous operation. The task result contains the authorization status.

Attributes

Applies to