Language

RangingSession.ICallback.OnMotionReceived(RangingDevice, MotionState) Method

Definition

Called when the peer's motion state is received when a motion is detected from the previous reported motion change.

[Android.Runtime.Register("onMotionReceived", "(Landroid/ranging/RangingDevice;Landroid/ranging/MotionState;)V", "GetOnMotionReceived_Landroid_ranging_RangingDevice_Landroid_ranging_MotionState_Handler:Android.Ranging.RangingSession/ICallback, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", ApiSince=37)]
public virtual void OnMotionReceived(Android.Ranging.RangingDevice peer, Android.Ranging.MotionState motion);
[<Android.Runtime.Register("onMotionReceived", "(Landroid/ranging/RangingDevice;Landroid/ranging/MotionState;)V", "GetOnMotionReceived_Landroid_ranging_RangingDevice_Landroid_ranging_MotionState_Handler:Android.Ranging.RangingSession/ICallback, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", ApiSince=37)>]
abstract member OnMotionReceived : Android.Ranging.RangingDevice * Android.Ranging.MotionState -> unit
override this.OnMotionReceived : Android.Ranging.RangingDevice * Android.Ranging.MotionState -> unit

Parameters

peer
RangingDevice

The peer device whose movement state has reported.

motion
MotionState

The new motion state of the peer.

Attributes

Remarks

Called when the peer's motion state is received when a motion is detected from the previous reported motion change.

Android reference for android.ranging.RangingSession.Callback.onMotionReceived.

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