MultisensoryManager.PlayToken(MultisensoryManagerToken) 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.
Deliver multisensory feedback associated with the given multisensory token constant.
[Android.Runtime.Register("playToken", "(I)V", "GetPlayToken_IHandler", ApiSince=37)]
public virtual void PlayToken(Android.OS.MultiSensory.MultisensoryManagerToken tokenConstant);
[<Android.Runtime.Register("playToken", "(I)V", "GetPlayToken_IHandler", ApiSince=37)>]
abstract member PlayToken : Android.OS.MultiSensory.MultisensoryManagerToken -> unit
override this.PlayToken : Android.OS.MultiSensory.MultisensoryManagerToken -> unit
Parameters
- tokenConstant
- MultisensoryManagerToken
The token constant to play. Must be one of the constants defined by the MultisensoryManager. Value is one of the following: TOKEN_FAILURE_HIGH_EMPHASIS; TOKEN_FAILURE; TOKEN_SUCCESS; TOKEN_START; TOKEN_PAUSE; TOKEN_STOP; TOKEN_CANCEL; TOKEN_SWITCH_ON; TOKEN_SWITCH_OFF; TOKEN_UNLOCK; TOKEN_LOCK; TOKEN_LONG_PRESS; TOKEN_SWIPE_INDICATOR_THRESHOLD_LIMIT; TOKEN_TAP_HIGH_EMPHASIS; TOKEN_TAP_MEDIUM_EMPHASIS; TOKEN_TAP_LOW_EMPHASIS; TOKEN_KEYPRESS_STANDARD; TOKEN_KEYPRESS_SPACEBAR; TOKEN_KEYPRESS_RETURN; TOKEN_KEYPRESS_DELETE; TOKEN_DRAG_INDICATOR_CONTINUOUS; TOKEN_DRAG_INDICATOR_DISCRETE; TOKEN_DRAG_INDICATOR_THRESHOLD_LIMIT
- Attributes
Remarks
Deliver multisensory feedback associated with the given multisensory token constant.
If the token defines audio-haptic feedback, audio and haptics will be played with the best synchronization possible. If the token only corresponds to haptics, only haptics will play.
Android reference for android.os.multisensory.MultisensoryManager.playToken.
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.