RfcommServiceProvider
RfcommServiceProvider
RfcommServiceProvider
RfcommServiceProvider
Class
Definition
Represents an instance of a local RFCOMM service.
public : sealed class RfcommServiceProvider : IRfcommServiceProvider, IRfcommServiceProvider2public sealed class RfcommServiceProvider : IRfcommServiceProvider, IRfcommServiceProvider2Public NotInheritable Class RfcommServiceProvider Implements IRfcommServiceProvider, IRfcommServiceProvider2// You can use this class in JavaScript.
- Attributes
| Device family |
Windows 10 (introduced v10.0.10240.0 - for Xbox, see UWP features that aren't yet supported on Xbox)
|
| API contract |
Windows.Foundation.UniversalApiContract (introduced v1)
|
Properties
SdpRawAttributes SdpRawAttributes SdpRawAttributes SdpRawAttributes
Gets a collection of SDP attributes for advertising.
public : IMap<uint, IBuffer> SdpRawAttributes { get; }public IDictionary<uint, IBuffer> SdpRawAttributes { get; }Public ReadOnly Property SdpRawAttributes As IDictionary<uint, IBuffer>// You can use this property in JavaScript.
- Value
- IMap<unsigned int, IBuffer> IDictionary<uint, IBuffer> IDictionary<uint, IBuffer> IDictionary<uint, IBuffer>
The collection of SDP attributes for advertising.
ServiceId ServiceId ServiceId ServiceId
Gets the RfcommServiceId of this local RFCOMM service instance.
public : RfcommServiceId ServiceId { get; }public RfcommServiceId ServiceId { get; }Public ReadOnly Property ServiceId As RfcommServiceId// You can use this property in JavaScript.
The RfcommServiceId of the local RFCOMM service instance.
Methods
CreateAsync(RfcommServiceId) CreateAsync(RfcommServiceId) CreateAsync(RfcommServiceId) CreateAsync(RfcommServiceId)
Gets a RfcommServiceProvider object from a DeviceInformation Id for a RFCOMM service instance.
public : static IAsyncOperation<RfcommServiceProvider> CreateAsync(RfcommServiceId serviceId)public static IAsyncOperation<RfcommServiceProvider> CreateAsync(RfcommServiceId serviceId)Public Static Function CreateAsync(serviceId As RfcommServiceId) As IAsyncOperation( Of RfcommServiceProvider )// You can use this method in JavaScript.
The RfcommServiceId to be hosted locally.
The RfcommServiceProvider object that represents the local RFCOMM service instance.
StartAdvertising(StreamSocketListener) StartAdvertising(StreamSocketListener) StartAdvertising(StreamSocketListener) StartAdvertising(StreamSocketListener)
Begins advertising the SDP attributes.
public : void StartAdvertising(StreamSocketListener listener)public void StartAdvertising(StreamSocketListener listener)Public Function StartAdvertising(listener As StreamSocketListener) As void// You can use this method in JavaScript.
The StreamSocketListener that is listening for incoming connections.
- See Also
StartAdvertising(StreamSocketListener, Boolean) StartAdvertising(StreamSocketListener, Boolean) StartAdvertising(StreamSocketListener, Boolean) StartAdvertising(StreamSocketListener, Boolean)
Begins advertising the SDP attributes.
public : void StartAdvertising(StreamSocketListener listener, bool radioDiscoverable)public void StartAdvertising(StreamSocketListener listener, Boolean radioDiscoverable)Public Function StartAdvertising(listener As StreamSocketListener, radioDiscoverable As Boolean) As void// You can use this method in JavaScript.
The StreamSocketListener that is listening for incoming connections.
- radioDiscoverable
- bool Boolean Boolean Boolean
Indicates whether the radio is discoverable (true) or not (false).
| Device family |
Windows 10 (introduced v10.0.10586.0 - for Xbox, see UWP features that aren't yet supported on Xbox)
|
| API contract |
Windows.Foundation.UniversalApiContract (introduced v2)
|
- See Also