CTCellularPlanStatus.RequestAuthorization Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Presents a prompt that asks the user to allow cellular plan checks for a phone number.
[Foundation.Export("requestAuthorizationForPhoneNumber:completion:")]
[ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)]
public static void RequestAuthorization(string phoneNumber, CoreTelephony.CTCellularPlanStatusAuthorizationCompletionHandler completionHandler);
[<Foundation.Export("requestAuthorizationForPhoneNumber:completion:")>]
[<ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)>]
static member RequestAuthorization : string * CoreTelephony.CTCellularPlanStatusAuthorizationCompletionHandler -> unit
Parameters
- phoneNumber
- String
A phone number in E.164 format, such as +15550001234.
- completionHandler
- CTCellularPlanStatusAuthorizationCompletionHandler
The handler to invoke with the authorization status or an error.
- Attributes