Added in [version 37.2](https://developer.android.com/topic/libraries/support-library/revisions) Summary: [Constants](https://developer.android.com/reference/android/os/multisensory/MultisensoryManager#constants) \| [Methods](https://developer.android.com/reference/android/os/multisensory/MultisensoryManager#pubmethods) \| [Inherited Methods](https://developer.android.com/reference/android/os/multisensory/MultisensoryManager#inhmethods)

# MultisensoryManager

*** ** * ** ***


`
public


class
MultisensoryManager
`


`

extends https://developer.android.com/reference/java/lang/Object


`

`


`

|---|---|
| [java.lang.Object](https://developer.android.com/reference/java/lang/Object) ||
| ↳ | android.os.multisensory.MultisensoryManager |

<br />

*** ** * ** ***

Provides capabilities to deliver audio-haptic feedback from the Multisensory Design System in
Android.

## Summary

| ### Constants ||
|---|---|
| `int` | `https://developer.android.com/reference/android/os/multisensory/MultisensoryManager#TOKEN_CANCEL` |
| `int` | `https://developer.android.com/reference/android/os/multisensory/MultisensoryManager#TOKEN_DRAG_INDICATOR_CONTINUOUS` Inform the user that their drag gesture has resulted in an incremental value change. |
| `int` | `https://developer.android.com/reference/android/os/multisensory/MultisensoryManager#TOKEN_DRAG_INDICATOR_DISCRETE` Inform the user that their drag gesture has resulted in a stepped value change. |
| `int` | `https://developer.android.com/reference/android/os/multisensory/MultisensoryManager#TOKEN_DRAG_INDICATOR_THRESHOLD_LIMIT` |
| `int` | `https://developer.android.com/reference/android/os/multisensory/MultisensoryManager#TOKEN_FAILURE` |
| `int` | `https://developer.android.com/reference/android/os/multisensory/MultisensoryManager#TOKEN_FAILURE_HIGH_EMPHASIS` |
| `int` | `https://developer.android.com/reference/android/os/multisensory/MultisensoryManager#TOKEN_KEYPRESS_DELETE` |
| `int` | `https://developer.android.com/reference/android/os/multisensory/MultisensoryManager#TOKEN_KEYPRESS_RETURN` |
| `int` | `https://developer.android.com/reference/android/os/multisensory/MultisensoryManager#TOKEN_KEYPRESS_SPACEBAR` |
| `int` | `https://developer.android.com/reference/android/os/multisensory/MultisensoryManager#TOKEN_KEYPRESS_STANDARD` |
| `int` | `https://developer.android.com/reference/android/os/multisensory/MultisensoryManager#TOKEN_LOCK` |
| `int` | `https://developer.android.com/reference/android/os/multisensory/MultisensoryManager#TOKEN_LONG_PRESS` |
| `int` | `https://developer.android.com/reference/android/os/multisensory/MultisensoryManager#TOKEN_PAUSE` |
| `int` | `https://developer.android.com/reference/android/os/multisensory/MultisensoryManager#TOKEN_START` |
| `int` | `https://developer.android.com/reference/android/os/multisensory/MultisensoryManager#TOKEN_STOP` |
| `int` | `https://developer.android.com/reference/android/os/multisensory/MultisensoryManager#TOKEN_SUCCESS` |
| `int` | `https://developer.android.com/reference/android/os/multisensory/MultisensoryManager#TOKEN_SWIPE_INDICATOR_THRESHOLD_LIMIT` Inform the user that their swipe gesture has crossed a threshold. |
| `int` | `https://developer.android.com/reference/android/os/multisensory/MultisensoryManager#TOKEN_SWITCH_OFF` |
| `int` | `https://developer.android.com/reference/android/os/multisensory/MultisensoryManager#TOKEN_SWITCH_ON` |
| `int` | `https://developer.android.com/reference/android/os/multisensory/MultisensoryManager#TOKEN_TAP_HIGH_EMPHASIS` |
| `int` | `https://developer.android.com/reference/android/os/multisensory/MultisensoryManager#TOKEN_TAP_LOW_EMPHASIS` Played when a user taps on any UI element that can be interacted with but is not otherwise defined. |
| `int` | `https://developer.android.com/reference/android/os/multisensory/MultisensoryManager#TOKEN_TAP_MEDIUM_EMPHASIS` |
| `int` | `https://developer.android.com/reference/android/os/multisensory/MultisensoryManager#TOKEN_UNLOCK` |

| ### Public methods ||
|---|---|
| ` void` | ` https://developer.android.com/reference/android/os/multisensory/MultisensoryManager#playToken(int)(int tokenConstant) ` Deliver multisensory feedback associated with the given multisensory token constant. |

### Inherited methods

From class `

https://developer.android.com/reference/java/lang/Object

` `


https://developer.android.com/reference/java/lang/Object` `
https://developer.android.com/reference/java/lang/Object#clone()()
`

Creates and returns a copy of this object.


`


boolean` `
https://developer.android.com/reference/java/lang/Object#equals(java.lang.Object)(https://developer.android.com/reference/java/lang/Object obj)
`

Indicates whether some other object is "equal to" this one.


`


void` `
https://developer.android.com/reference/java/lang/Object#finalize()()
`

Called by the garbage collector on an object when garbage collection
determines that there are no more references to the object.


`


final

https://developer.android.com/reference/java/lang/Class<?>` `
https://developer.android.com/reference/java/lang/Object#getClass()()
`

Returns the runtime class of this `Object`.


`


int` `
https://developer.android.com/reference/java/lang/Object#hashCode()()
`

Returns a hash code value for the object.


`


final

void` `
https://developer.android.com/reference/java/lang/Object#notify()()
`

Wakes up a single thread that is waiting on this object's
monitor.


`


final

void` `
https://developer.android.com/reference/java/lang/Object#notifyAll()()
`

Wakes up all threads that are waiting on this object's monitor.


`


https://developer.android.com/reference/java/lang/String` `
https://developer.android.com/reference/java/lang/Object#toString()()
`

Returns a string representation of the object.


`


final

void` `
https://developer.android.com/reference/java/lang/Object#wait(long,%20int)(long timeoutMillis, int nanos)
`

Causes the current thread to wait until it is awakened, typically
by being *notified* or *interrupted*, or until a
certain amount of real time has elapsed.


`


final

void` `
https://developer.android.com/reference/java/lang/Object#wait(long)(long timeoutMillis)
`

Causes the current thread to wait until it is awakened, typically
by being *notified* or *interrupted*, or until a
certain amount of real time has elapsed.


`


final

void` `
https://developer.android.com/reference/java/lang/Object#wait()()
`

Causes the current thread to wait until it is awakened, typically
by being *notified* or *interrupted*.


## Constants

### TOKEN_CANCEL

Added in [version 37.2](https://developer.android.com/topic/libraries/support-library/revisions)

```
public static final int TOKEN_CANCEL
```

<br />

<br />

Constant Value:

6
(0x00000006)


### TOKEN_DRAG_INDICATOR_CONTINUOUS

Added in [version 37.2](https://developer.android.com/topic/libraries/support-library/revisions)

```
public static final int TOKEN_DRAG_INDICATOR_CONTINUOUS
```

Inform the user that their drag gesture has resulted in an incremental value change.

This token can be used to create a continuous effect affected by `https://developer.android.com/`

<br />

Constant Value:

17
(0x00000011)


### TOKEN_DRAG_INDICATOR_DISCRETE

Added in [version 37.2](https://developer.android.com/topic/libraries/support-library/revisions)

```
public static final int TOKEN_DRAG_INDICATOR_DISCRETE
```

Inform the user that their drag gesture has resulted in a stepped value change.

This token can be used to create a continuous effect affected by `https://developer.android.com/`

<br />

Constant Value:

18
(0x00000012)


### TOKEN_DRAG_INDICATOR_THRESHOLD_LIMIT

Added in [version 37.2](https://developer.android.com/topic/libraries/support-library/revisions)

```
public static final int TOKEN_DRAG_INDICATOR_THRESHOLD_LIMIT
```

<br />

<br />

Constant Value:

16
(0x00000010)


### TOKEN_FAILURE

Added in [version 37.2](https://developer.android.com/topic/libraries/support-library/revisions)

```
public static final int TOKEN_FAILURE
```

<br />

<br />

Constant Value:

1
(0x00000001)


### TOKEN_FAILURE_HIGH_EMPHASIS

Added in [version 37.2](https://developer.android.com/topic/libraries/support-library/revisions)

```
public static final int TOKEN_FAILURE_HIGH_EMPHASIS
```

<br />

<br />

Constant Value:

0
(0x00000000)


### TOKEN_KEYPRESS_DELETE

Added in [version 37.2](https://developer.android.com/topic/libraries/support-library/revisions)

```
public static final int TOKEN_KEYPRESS_DELETE
```

<br />

<br />

Constant Value:

22
(0x00000016)


### TOKEN_KEYPRESS_RETURN

Added in [version 37.2](https://developer.android.com/topic/libraries/support-library/revisions)

```
public static final int TOKEN_KEYPRESS_RETURN
```

<br />

<br />

Constant Value:

21
(0x00000015)


### TOKEN_KEYPRESS_SPACEBAR

Added in [version 37.2](https://developer.android.com/topic/libraries/support-library/revisions)

```
public static final int TOKEN_KEYPRESS_SPACEBAR
```

<br />

<br />

Constant Value:

20
(0x00000014)


### TOKEN_KEYPRESS_STANDARD

Added in [version 37.2](https://developer.android.com/topic/libraries/support-library/revisions)

```
public static final int TOKEN_KEYPRESS_STANDARD
```

<br />

<br />

Constant Value:

19
(0x00000013)


### TOKEN_LOCK

Added in [version 37.2](https://developer.android.com/topic/libraries/support-library/revisions)

```
public static final int TOKEN_LOCK
```

<br />

<br />

Constant Value:

10
(0x0000000a)


### TOKEN_LONG_PRESS

Added in [version 37.2](https://developer.android.com/topic/libraries/support-library/revisions)

```
public static final int TOKEN_LONG_PRESS
```

<br />

<br />

Constant Value:

11
(0x0000000b)


### TOKEN_PAUSE

Added in [version 37.2](https://developer.android.com/topic/libraries/support-library/revisions)

```
public static final int TOKEN_PAUSE
```

<br />

<br />

Constant Value:

4
(0x00000004)


### TOKEN_START

Added in [version 37.2](https://developer.android.com/topic/libraries/support-library/revisions)

```
public static final int TOKEN_START
```

<br />

<br />

Constant Value:

3
(0x00000003)


### TOKEN_STOP

Added in [version 37.2](https://developer.android.com/topic/libraries/support-library/revisions)

```
public static final int TOKEN_STOP
```

<br />

<br />

Constant Value:

5
(0x00000005)


### TOKEN_SUCCESS

Added in [version 37.2](https://developer.android.com/topic/libraries/support-library/revisions)

```
public static final int TOKEN_SUCCESS
```

<br />

<br />

Constant Value:

2
(0x00000002)


### TOKEN_SWIPE_INDICATOR_THRESHOLD_LIMIT

Added in [version 37.2](https://developer.android.com/topic/libraries/support-library/revisions)

```
public static final int TOKEN_SWIPE_INDICATOR_THRESHOLD_LIMIT
```

Inform the user that their swipe gesture has crossed a threshold. This indicates that the
swipe action beyond the threshold will activate when the swipe is completed.

<br />

Constant Value:

12
(0x0000000c)


### TOKEN_SWITCH_OFF

Added in [version 37.2](https://developer.android.com/topic/libraries/support-library/revisions)

```
public static final int TOKEN_SWITCH_OFF
```

<br />

<br />

Constant Value:

8
(0x00000008)


### TOKEN_SWITCH_ON

Added in [version 37.2](https://developer.android.com/topic/libraries/support-library/revisions)

```
public static final int TOKEN_SWITCH_ON
```

<br />

<br />

Constant Value:

7
(0x00000007)


### TOKEN_TAP_HIGH_EMPHASIS

Added in [version 37.2](https://developer.android.com/topic/libraries/support-library/revisions)

```
public static final int TOKEN_TAP_HIGH_EMPHASIS
```

<br />

<br />

Constant Value:

13
(0x0000000d)


### TOKEN_TAP_LOW_EMPHASIS

Added in [version 37.2](https://developer.android.com/topic/libraries/support-library/revisions)

```
public static final int TOKEN_TAP_LOW_EMPHASIS
```

Played when a user taps on any UI element that can be interacted with but is not otherwise
defined.

<br />

Constant Value:

15
(0x0000000f)


### TOKEN_TAP_MEDIUM_EMPHASIS

Added in [version 37.2](https://developer.android.com/topic/libraries/support-library/revisions)

```
public static final int TOKEN_TAP_MEDIUM_EMPHASIS
```

<br />

<br />

Constant Value:

14
(0x0000000e)


### TOKEN_UNLOCK

Added in [version 37.2](https://developer.android.com/topic/libraries/support-library/revisions)

```
public static final int TOKEN_UNLOCK
```

<br />

<br />

Constant Value:

9
(0x00000009)


## Public methods

### playToken

Added in [version 37.2](https://developer.android.com/topic/libraries/support-library/revisions)

```
public void playToken (int tokenConstant)
```

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.

<br />

| Parameters ||
|---|---|
| `tokenConstant` | `int`: The token constant to play. Must be one of the constants defined by the `https://developer.android.com/reference/android/os/multisensory/MultisensoryManager`. Value is one of the following: - `https://developer.android.com/reference/android/os/multisensory/MultisensoryManager#TOKEN_FAILURE_HIGH_EMPHASIS` - `https://developer.android.com/reference/android/os/multisensory/MultisensoryManager#TOKEN_FAILURE` - `https://developer.android.com/reference/android/os/multisensory/MultisensoryManager#TOKEN_SUCCESS` - `https://developer.android.com/reference/android/os/multisensory/MultisensoryManager#TOKEN_START` - `https://developer.android.com/reference/android/os/multisensory/MultisensoryManager#TOKEN_PAUSE` - `https://developer.android.com/reference/android/os/multisensory/MultisensoryManager#TOKEN_STOP` - `https://developer.android.com/reference/android/os/multisensory/MultisensoryManager#TOKEN_CANCEL` - `https://developer.android.com/reference/android/os/multisensory/MultisensoryManager#TOKEN_SWITCH_ON` - `https://developer.android.com/reference/android/os/multisensory/MultisensoryManager#TOKEN_SWITCH_OFF` - `https://developer.android.com/reference/android/os/multisensory/MultisensoryManager#TOKEN_UNLOCK` - `https://developer.android.com/reference/android/os/multisensory/MultisensoryManager#TOKEN_LOCK` - `https://developer.android.com/reference/android/os/multisensory/MultisensoryManager#TOKEN_LONG_PRESS` - `https://developer.android.com/reference/android/os/multisensory/MultisensoryManager#TOKEN_SWIPE_INDICATOR_THRESHOLD_LIMIT` - `https://developer.android.com/reference/android/os/multisensory/MultisensoryManager#TOKEN_TAP_HIGH_EMPHASIS` - `https://developer.android.com/reference/android/os/multisensory/MultisensoryManager#TOKEN_TAP_MEDIUM_EMPHASIS` - `https://developer.android.com/reference/android/os/multisensory/MultisensoryManager#TOKEN_TAP_LOW_EMPHASIS` - `https://developer.android.com/reference/android/os/multisensory/MultisensoryManager#TOKEN_KEYPRESS_STANDARD` - `https://developer.android.com/reference/android/os/multisensory/MultisensoryManager#TOKEN_KEYPRESS_SPACEBAR` - `https://developer.android.com/reference/android/os/multisensory/MultisensoryManager#TOKEN_KEYPRESS_RETURN` - `https://developer.android.com/reference/android/os/multisensory/MultisensoryManager#TOKEN_KEYPRESS_DELETE` - `https://developer.android.com/reference/android/os/multisensory/MultisensoryManager#TOKEN_DRAG_INDICATOR_CONTINUOUS` - `https://developer.android.com/reference/android/os/multisensory/MultisensoryManager#TOKEN_DRAG_INDICATOR_DISCRETE` - `https://developer.android.com/reference/android/os/multisensory/MultisensoryManager#TOKEN_DRAG_INDICATOR_THRESHOLD_LIMIT` |