BluetoothGattServer.GetService(UUID) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Returns a BluetoothGattService
from the list of services offered by this device.
[Android.Runtime.Register("getService", "(Ljava/util/UUID;)Landroid/bluetooth/BluetoothGattService;", "")]
public Android.Bluetooth.BluetoothGattService? GetService (Java.Util.UUID? uuid);
[<Android.Runtime.Register("getService", "(Ljava/util/UUID;)Landroid/bluetooth/BluetoothGattService;", "")>]
member this.GetService : Java.Util.UUID -> Android.Bluetooth.BluetoothGattService
Parameters
- uuid
- UUID
UUID of the requested service
Returns
BluetoothGattService if supported, or null if the requested service is not offered by this device.
- Attributes
Remarks
Returns a BluetoothGattService
from the list of services offered by this device.
If multiple instances of the same service (as identified by UUID) exist, the first instance of the service is returned.
Java documentation for android.bluetooth.BluetoothGattServer.getService(java.util.UUID)
.
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.