public void OnDeviceUpdate(string message) { var deviceList = AndroidUtils.ConvertToBhapticsDevices(message); OnUpdateDevicesChange(deviceList); RefreshDeviceListUi(); }
public List <HapticDevice> GetDevices() { string[] result = androidJavaObject.Call <string[]>("getDeviceList"); deviceList = AndroidUtils.ConvertToBhapticsDevices(result); return(deviceList); }
public List <HapticDevice> GetDevices(bool force = false) { if (force) { string result = hapticPlayer.Call <string>("getDeviceList"); deviceList = AndroidUtils.ConvertToBhapticsDevices(result); } return(deviceList); }