PhoneCallStore
PhoneCallStore
PhoneCallStore
PhoneCallStore
Class
Definition
Represents a collection of information about the phone lines available on a device.
public : sealed class PhoneCallStore : IPhoneCallStorepublic sealed class PhoneCallStore : IPhoneCallStorePublic NotInheritable Class PhoneCallStore Implements IPhoneCallStore// You can use this class in JavaScript.
- Attributes
Windows 10 requirements
| Device family |
Windows Mobile Extension SDK (introduced v10.0.10240.0)
|
| API contract |
Windows.ApplicationModel.Calls.CallsPhoneContract (introduced v1)
|
Methods
GetDefaultLineAsync() GetDefaultLineAsync() GetDefaultLineAsync() GetDefaultLineAsync()
Gets the line ID for the current default phone line.
public : IAsyncOperation<PlatForm::Guid> GetDefaultLineAsync()public IAsyncOperation<Guid> GetDefaultLineAsync()Public Function GetDefaultLineAsync() As IAsyncOperation( Of Guid )// You can use this method in JavaScript.
Returns
An asynchronous operation that returns the line ID upon successful completion.
IsEmergencyPhoneNumberAsync(String) IsEmergencyPhoneNumberAsync(String) IsEmergencyPhoneNumberAsync(String) IsEmergencyPhoneNumberAsync(String)
Checks to see if a phone number connects to a known emergency services provider.
public : IAsyncOperation<PlatForm::Boolean> IsEmergencyPhoneNumberAsync(PlatForm::String number)public IAsyncOperation<bool> IsEmergencyPhoneNumberAsync(String number)Public Function IsEmergencyPhoneNumberAsync(number As String) As IAsyncOperation( Of bool )// You can use this method in JavaScript.
Parameters
- number
- PlatForm::String String String String
The phone number to check to see if it is a known emergency number.
Returns
IAsyncOperation<PlatForm::Boolean>
IAsyncOperation<bool>
IAsyncOperation<bool>
IAsyncOperation<bool>
An asynchronous operation that returns a boolean on successful completion . True indicates that the phone number connects to a known emergency services provider.
RequestLineWatcher() RequestLineWatcher() RequestLineWatcher() RequestLineWatcher()
Retrieves an instance of the PhoneLineWatcher class for the device.
public : PhoneLineWatcher RequestLineWatcher()public PhoneLineWatcher RequestLineWatcher()Public Function RequestLineWatcher() As PhoneLineWatcher// You can use this method in JavaScript.
Returns
An instance of the PhoneLineWatcher class for the device.