Freigeben über


BluetoothGattService Constructors

Definition

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

Java documentation for android.bluetooth.BluetoothGattService.BluetoothGattService(java.util.UUID, int).

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

javaReference
IntPtr

nativeint

A IntPtrcontaining a Java Native Interface (JNI) object reference.

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.

Applies to