public OnBleDidCompletePeripheralScan ( string message ) : void | ||
message | string | |
Результат | void |
public static void ScanForPeripherals() { // We check for UNITY_IPHONE again so we don't try this if it isn't iOS platform. #if UNITY_IPHONE // Now we check that it's actually an iOS device/simulator, not the Unity Player. You only get plugins on the actual device or iOS Simulator. if (Application.platform == RuntimePlatform.IPhonePlayer) { _ScanForPeripherals(); } #elif UNITY_ANDROID if (Application.platform == RuntimePlatform.Android) { System.Action <string> callback = ((string message) => { BLEControllerEventHandler.OnBleDidCompletePeripheralScan(message); }); PluginInstance.Call("_ScanForPeripherals", new object[] { new UnityCallback(callback) }); } #endif }
void OnBleDidCompletePeripheralScanMessage(string message) { BLEControllerEventHandler.OnBleDidCompletePeripheralScan(message); }