{
RemoteDeviceAddress = address;
}
+
+ internal static void Pair()
+ {
+ // TODO
+ // 1. Call CreateBond API
+ // 2. Set BT Operation state as Pairing
+ // 3. Set Device state as Pairing
+ // 4. Bonding Created
+ // --> Remove device into searched list
+ // --> Add device into paired list
+ // --> Invoke Remove Searched Device event to View
+ // --> Invoke New Paired Device event to View
+ // 5. Set BT Operation state as Activated
+ }
+
+ internal static void Unpair()
+ {
+ // TODO
+ // 1. Call DestroyBond API
+ // 2. Set BT Operation state as Pairing
+ // 3. Set Device state as Unpairing
+ // 4. Bonding Destroyed
+ // --> Remove device into paired list
+ // --> Invoke Remove Paired Device event to View
+ // 5. Set BT Operation state as Activated
+ }
+
+ internal static void ConnectAudio()
+ {
+ // TODO
+ // 1. Call Connect API (Audio)
+ // 2. Set BT Operation state as Connecting
+ // 3. Set Device state as Connecting
+ // 4. Audio Connection Callback
+ // --> Update Device State (Success -> Connected, Fail -> Paired)
+ // --> Update Device Connected info (Connected Profile info - HFP / A2DP)
+ // 5. Set BT Operation state as Activated
+ }
+
+ internal static void DisConnectAudio()
+ {
+ // TODO
+ // 1. Call Disconnect API (Audio)
+ // 2. Set BT Operation state as Connecting
+ // 3. Set Device state as Disonnecting
+ // 4. Audio Disconnection Callback
+ // --> Update Device State (Success -> Paired, Fail -> Connected)
+ // --> Update Device Connected info (Connected Profile info - HFP / A2DP)
+ // 5. Set BT Operation state as Activated
+ }
+
+ internal static void ConnectHid()
+ {
+ // TODO (Same with audio)
+ }
+
+ internal static void DisConnectHid()
+ {
+ // TODO (Same with audio)
+ }
}
}