BluetoothGattService Constructors
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.
Overloads
BluetoothGattService(UUID, GattServiceType) |
Create a new BluetoothGattService. |
BluetoothGattService(IntPtr, JniHandleOwnership) |
A constructor used when creating managed representations of JNI objects; called by the runtime. |
BluetoothGattService(UUID, GattServiceType)
Create a new BluetoothGattService.
[Android.Runtime.Register(".ctor", "(Ljava/util/UUID;I)V", "")]
public BluetoothGattService (Java.Util.UUID? uuid, Android.Bluetooth.GattServiceType serviceType);
[<Android.Runtime.Register(".ctor", "(Ljava/util/UUID;I)V", "")>]
new Android.Bluetooth.BluetoothGattService : Java.Util.UUID * Android.Bluetooth.GattServiceType -> Android.Bluetooth.BluetoothGattService
Parameters
- uuid
- UUID
The UUID for this service
- serviceType
- GattServiceType
The type of this service,
BluetoothGattService#SERVICE_TYPE_PRIMARY
or BluetoothGattService#SERVICE_TYPE_SECONDARY
- Attributes
Remarks
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.
Applies to
BluetoothGattService(IntPtr, JniHandleOwnership)
A constructor used when creating managed representations of JNI objects; called by the runtime.
protected BluetoothGattService (IntPtr javaReference, Android.Runtime.JniHandleOwnership transfer);
new Android.Bluetooth.BluetoothGattService : nativeint * Android.Runtime.JniHandleOwnership -> Android.Bluetooth.BluetoothGattService
Parameters
- transfer
- JniHandleOwnership
A JniHandleOwnershipindicating how to handle javaReference
Remarks
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.