CTQuickSwitchManager.GetPhoneNumberStateAsync(String) 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.
Gets the quick-switch state for a phone number whose suffix matches the provided value.
[ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)]
public virtual System.Threading.Tasks.Task<CoreTelephony.CTQuickSwitchState> GetPhoneNumberStateAsync(string phoneNumberSuffix);
[<ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)>]
abstract member GetPhoneNumberStateAsync : string -> System.Threading.Tasks.Task<CoreTelephony.CTQuickSwitchState>
override this.GetPhoneNumberStateAsync : string -> System.Threading.Tasks.Task<CoreTelephony.CTQuickSwitchState>
Parameters
- phoneNumberSuffix
- String
The last four digits of the phone number whose state to query.
Returns
A task that represents the asynchronous operation. The task result contains the quick-switch state.
- Attributes
Remarks
The framework presents a consent screen. If the user denies consent, the operation returns NotEnrolled without an error.