Classes
Members
(inner, readonly) platformChoice :string
Enum to describe the platforms we can simulate, this mostly controls how we handle connect
Type:
- string
Properties:
| Name | Type | Description |
|---|---|---|
ANDROID |
string | |
IOS |
string |
Methods
(inner) toggleBluetooth(platform, wifiBasedNativeMock) → {function}
This simulates turning Bluetooth on and off.
If we are emulating Android then we MUST start with Bluetooth and WiFi turned off.
Open Issue: I believe that JXCore will treat this as a NOOP if called on iOS. We need to check and emulate their behavior.
Parameters:
| Name | Type | Description |
|---|---|---|
platform |
platformChoice | |
wifiBasedNativeMock |
ThaliWifiInfrastructure |
Returns:
- Type
- function
(inner) toggleWiFi(platform, wifiBasedNativeMock) → {function}
If we are on Android then then is a NOOP since we don't care (although to be good little programmers we should still fire a network changed event). We won't be using Wifi for discovery or connectivity in the near future.
Open Issue: I believe that JXCore will treat this as a NOOP if called on iOS. We need to check and emulate their behavior.
Parameters:
| Name | Type | Description |
|---|---|---|
platform |
platformChoice | |
wifiBasedNativeMock |
ThaliWifiInfrastructure |
Returns:
- Type
- function