/// <summary> /// Sets the custom Bluetooth device browser. /// </summary> public virtual void SetCustomDeviceBrowser(ICustomDeviceBrowser customDeviceBrowser) { if (_customDeviceBrowser != null) { _customDeviceBrowser.OnDevicePicked -= OnBluetoothDevicePicked; } _customDeviceBrowser = customDeviceBrowser; if (_customDeviceBrowser != null) { _customDeviceBrowser.OnDevicePicked += OnBluetoothDevicePicked; } }
/// <summary> /// Sets the custom nearby peer browser. /// </summary> public void SetCustomDeviceBrowser(ICustomDeviceBrowser customDeviceBrowser) { if (_customDeviceBrowser != null) { _customDeviceBrowser.OnPeerPicked -= OnPeerPicked; } _customDeviceBrowser = customDeviceBrowser; if (_customDeviceBrowser != null) { _customDeviceBrowser.OnPeerPicked += OnPeerPicked; } }