TwclWiFiDirectAdvertiser Class
The class allows to publish WiFi Direct advertisements.
wclWiFi.TwclCustomWiFiDirectComponent
wclWiFi.TwclWiFiDirectConnectionComponent
wclWiFi.TwclWiFiDirectAdvertiser
type TwclWiFiDirectAdvertiser = class(TwclWiFiDirectConnectionComponent) end;
The TwclWiFiDirectAdvertiser type exposes the following members.
Name | Description | |
---|---|---|
Create(TComponent) | Creates a new WiFi Direct Advertiser component. (Overrides TwclWiFiDirectConnectionComponent.Create(TComponent).) | |
Destroy | Frees the WiFi Direct Advertiser component. (Overrides TwclCustomWiFiDirectComponent.Destroy.) |
Name | Description | |
---|---|---|
Active | Gets the WiFi Direct Advertiser state. | |
AutonomousGroupOwnerEnabled | Gets and sets the autonomous group owner state. | |
Count | Gets connected devices number. | |
Devices[Integer] | Gets connected device. | |
Discoverability | Gets and sets the listen state and whether the WiFi Direct device is discoverable. | |
HardwareAvailable | Gets the Hardware Available flag. (Inherited from TwclCustomWiFiDirectComponent.) | |
Legacy | Gets and sets the WiFi Direct Advertiser legacy node state. | |
OnStarted | The event fires when the WiFi Direct Advertiser has been started with success. | |
OnStopped | The event fires when the WiFi Direct Advertiser has been stopped. | |
OpenAuth | Gets and sets the Open Network flag. | |
Passphrase | Gets and sets the pass phrase for Legacy mode. | |
Receiver | Gets the message receiver object. (Inherited from TwclCustomWiFiDirectComponent.) | |
Ssid | Gets and sets the Service Set Identifier (SSID). |
Name | Description | |
---|---|---|
OnAcceptDevice | The event fires when a remote WiFi enable device connects to the WiFi Direct Advertiser and an application must accept or reject the connection request. | |
OnDeviceConnected | The event fires when a remote WiFi enabled device has been connected to the WiFi Direct Advertiser. (Inherited from TwclWiFiDirectConnectionComponent.) | |
OnDeviceDisconnected | The event fires when the remote WiFi enabled device has been disconnected from the WiFi Direct Advertiser. (Inherited from TwclWiFiDirectConnectionComponent.) | |
OnPairCompleted | The event fires when pairing with a remote WiFi enabled device has been completed (with or without success). (Inherited from TwclWiFiDirectConnectionComponent.) | |
OnPairConfirm | The event fires when a remote WiFi enabled device requests simple pairing confirmation. (Inherited from TwclWiFiDirectConnectionComponent.) | |
OnPairDisplayPin | The event fires when a remote WiFi enabled device requests the Display Pin pairing procedure. An application must show the Pin received from the event. (Inherited from TwclWiFiDirectConnectionComponent.) | |
OnPairGetParams | The event fires when pairing parameters need to be set. (Inherited from TwclWiFiDirectConnectionComponent.) | |
OnPairProvidePin | The event fires when a remote WiFi enabled device requests Pin for pairing. An application must provide Pin. (Inherited from TwclWiFiDirectConnectionComponent.) |
Windows 10, version 1607, supports Mobile Hotspot, an enhanced version of the mobile broadband tethering feature. If Mobile Hotspot is running, the functionality of this class is not supported. It is likely to stop working.
The Mobile Hotspot and WiFi Direct technology cannot run at the same time. Mobile Hotspot takes precedence over all WiFi Direct scenarios.