ogs-plugin-sdk
Preparing search index...
bluetooth
BluetoothClient
Interface BluetoothClient
The main bluetooth interface used for scanning and connecting to devices
interface
BluetoothClient
{
on
(
event
:
"stateChange"
,
listener
:
(
state
:
BluetoothAdapterState
)
=>
void
,
)
:
this
;
on
(
event
:
"discover"
,
listener
:
(
device
:
BluetoothDevice
)
=>
void
)
:
this
;
waitForPoweredOn
(
timeout
?:
number
)
:
Promise
<
void
>
;
startScanning
(
serviceUUIDs
?:
string
[]
,
allowDuplicates
?:
boolean
,
)
:
Promise
<
void
>
;
stopScanning
()
:
Promise
<
void
>
;
}
Index
Methods
on
wait
For
Powered
On
start
Scanning
stop
Scanning
Methods
on
on
(
event
:
"stateChange"
,
listener
:
(
state
:
BluetoothAdapterState
)
=>
void
)
:
this
Parameters
event
:
"stateChange"
listener
:
(
state
:
BluetoothAdapterState
)
=>
void
Returns
this
on
(
event
:
"discover"
,
listener
:
(
device
:
BluetoothDevice
)
=>
void
)
:
this
Parameters
event
:
"discover"
listener
:
(
device
:
BluetoothDevice
)
=>
void
Returns
this
wait
For
Powered
On
waitForPoweredOn
(
timeout
?:
number
)
:
Promise
<
void
>
Parameters
Optional
timeout
:
number
Returns
Promise
<
void
>
start
Scanning
startScanning
(
serviceUUIDs
?:
string
[]
,
allowDuplicates
?:
boolean
)
:
Promise
<
void
>
Parameters
Optional
serviceUUIDs
:
string
[]
Optional
allowDuplicates
:
boolean
Returns
Promise
<
void
>
stop
Scanning
stopScanning
()
:
Promise
<
void
>
Returns
Promise
<
void
>
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
On This Page
Methods
on
wait
For
Powered
On
start
Scanning
stop
Scanning
ogs-plugin-sdk
Loading...
The main bluetooth interface used for scanning and connecting to devices