Share via


PhoneLineTransportDevice Class

Definition

Represents the hardware device associated with a PhoneLine. Currently only supported for use with bluetooth devices.

public ref class PhoneLineTransportDevice sealed
/// [Windows.Foundation.Metadata.ContractVersion(Windows.ApplicationModel.Calls.CallsPhoneContract, 327680)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
class PhoneLineTransportDevice final
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.ApplicationModel.Calls.CallsPhoneContract), 327680)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
public sealed class PhoneLineTransportDevice
Public NotInheritable Class PhoneLineTransportDevice
Inheritance
Object Platform::Object IInspectable PhoneLineTransportDevice
Attributes

Windows requirements

Device family
Windows 10, version 1903 (introduced in 10.0.18362.0)
API contract
Windows.ApplicationModel.Calls.CallsPhoneContract (introduced in v5.0)

Properties

AudioRoutingStatus

Gets the audio routing status of the underlying transport device.

DeviceId

Gets the DeviceID of the hardware device associated with the PhoneLineTransportDevice.

InBandRingingEnabled

Gets the in-band ringtone enable status of the underlying transport device.

Transport

Gets the PhoneLineTransport for the PhoneLineTransportDevice.

Methods

Connect()

Attempts to establish a connection with the device.

ConnectAsync()

Attempts to asynchronously establish a connection with the device.

FromId(String)

Gets the PhoneLineTransportDevice from the given DeviceId.

GetDeviceSelector()

Gets an Advanced Query Syntax (AQS) string that the app can pass to DeviceInformation.FindAllAsync in order to find PhoneLineTransportDevices.

GetDeviceSelector(PhoneLineTransport)

Gets an Advanced Query Syntax (AQS) string that the app can pass to DeviceInformation.FindAllAsync in order to find PhoneLineTransportDevices of the given type.

IsRegistered()

Returns the registration status of the app for the active user.

RegisterApp()

Registers the app with Windows for the associated PhoneLineTransportDevice.

RegisterAppForUser(User)

Registers the app with Windows for the associated PhoneLineTransportDevice.

RequestAccessAsync()

Used to request explicit access to the PhoneLineTransportDevice.

UnregisterApp()

Unregisters the app with Windows for the associated PhoneLineTransportDevice.

UnregisterAppForUser(User)

Unregisters the app with Windows for the associated PhoneLineTransportDevice.

Events

AudioRoutingStatusChanged

An event that's raised when the audio routing of the underlying transport device changes.

InBandRingingEnabledChanged

An event that's raised when the in-band ringtone enable status changes.

Applies to