BluetoothGattServerCallback.OnServiceAdded メソッド
定義
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
オーバーロード
OnServiceAdded(GattStatus, BluetoothGattService) |
ローカル サービスが正常に追加されたかどうかを示します。 |
OnServiceAdded(ProfileState, BluetoothGattService) |
古い.
ローカル サービスが正常に追加されたかどうかを示します。 |
OnServiceAdded(GattStatus, BluetoothGattService)
ローカル サービスが正常に追加されたかどうかを示します。
[Android.Runtime.Register("onServiceAdded", "(ILandroid/bluetooth/BluetoothGattService;)V", "GetOnServiceAdded_ILandroid_bluetooth_BluetoothGattService_Handler")]
public virtual void OnServiceAdded (Android.Bluetooth.GattStatus status, Android.Bluetooth.BluetoothGattService? service);
[<Android.Runtime.Register("onServiceAdded", "(ILandroid/bluetooth/BluetoothGattService;)V", "GetOnServiceAdded_ILandroid_bluetooth_BluetoothGattService_Handler")>]
abstract member OnServiceAdded : Android.Bluetooth.GattStatus * Android.Bluetooth.BluetoothGattService -> unit
override this.OnServiceAdded : Android.Bluetooth.GattStatus * Android.Bluetooth.BluetoothGattService -> unit
パラメーター
- status
- GattStatus
サービスが BluetoothGatt#GATT_SUCCESS
正常に追加された場合は を返します。
- service
- BluetoothGattService
追加されたサービス
- 属性
注釈
このページの一部は、によって作成および共有された作業に基づく変更であり、に記載されている条件に従って使用されます。
適用対象
OnServiceAdded(ProfileState, BluetoothGattService)
注意事項
Use OnServiceAdded(Android.Bluetooth.GattStatus, Android.Bluetooth.BluetoothGattService)
ローカル サービスが正常に追加されたかどうかを示します。
[Android.Runtime.Register("onServiceAdded", "(ILandroid/bluetooth/BluetoothGattService;)V", "GetOnServiceAdded_ILandroid_bluetooth_BluetoothGattService_Handler_ext")]
[System.Obsolete("Use OnServiceAdded(Android.Bluetooth.GattStatus, Android.Bluetooth.BluetoothGattService)", true)]
public virtual void OnServiceAdded (Android.Bluetooth.ProfileState status, Android.Bluetooth.BluetoothGattService service);
[<Android.Runtime.Register("onServiceAdded", "(ILandroid/bluetooth/BluetoothGattService;)V", "GetOnServiceAdded_ILandroid_bluetooth_BluetoothGattService_Handler_ext")>]
[<System.Obsolete("Use OnServiceAdded(Android.Bluetooth.GattStatus, Android.Bluetooth.BluetoothGattService)", true)>]
abstract member OnServiceAdded : Android.Bluetooth.ProfileState * Android.Bluetooth.BluetoothGattService -> unit
override this.OnServiceAdded : Android.Bluetooth.ProfileState * Android.Bluetooth.BluetoothGattService -> unit
パラメーター
- status
- ProfileState
サービスが GattSuccess 正常に追加された場合は を返します。
- service
- BluetoothGattService
追加されたサービス
- 属性
注釈
このページの一部は、によって作成および共有された作業に基づく変更であり、に記載されている条件に従って使用されます。