# PointerIconCompat

# PointerIconCompat

Artifact:[androidx.core:core](https://developer.android.com/jetpack/androidx/releases/core)  
[View Source](https://cs.android.com/search?q=file:androidx/core/view/PointerIconCompat.java+class:androidx.core.view.PointerIconCompat)  
Added in[1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

*** ** * ** ***

Kotlin\|[Java](https://developer.android.com/reference/androidx/core/view/PointerIconCompat "View this page in Java")

<br />

```
class PointerIconCompat
```

<br />

*** ** * ** ***

Helper for accessing features in[PointerIcon](https://developer.android.com/reference/android/view/PointerIcon.html)in a backwards compatible fashion.

## Summary

|                                    ### Constants                                    |
|-------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `const `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html) | [TYPE_ALIAS](https://developer.android.com/reference/kotlin/androidx/core/view/PointerIconCompat#TYPE_ALIAS())` = 1010` Synonym for[TYPE_ALIAS](https://developer.android.com/reference/android/view/PointerIcon.html#TYPE_ALIAS())                                                                                                         |
| `const `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html) | [TYPE_ALL_SCROLL](https://developer.android.com/reference/kotlin/androidx/core/view/PointerIconCompat#TYPE_ALL_SCROLL())` = 1013` Synonym for[TYPE_ALL_SCROLL](https://developer.android.com/reference/android/view/PointerIcon.html#TYPE_ALL_SCROLL())                                                                                     |
| `const `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html) | [TYPE_ARROW](https://developer.android.com/reference/kotlin/androidx/core/view/PointerIconCompat#TYPE_ARROW())` = 1000` Synonym for[TYPE_ARROW](https://developer.android.com/reference/android/view/PointerIcon.html#TYPE_ARROW())                                                                                                         |
| `const `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html) | [TYPE_CELL](https://developer.android.com/reference/kotlin/androidx/core/view/PointerIconCompat#TYPE_CELL())` = 1006` Synonym for[TYPE_CELL](https://developer.android.com/reference/android/view/PointerIcon.html#TYPE_CELL())                                                                                                             |
| `const `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html) | [TYPE_CONTEXT_MENU](https://developer.android.com/reference/kotlin/androidx/core/view/PointerIconCompat#TYPE_CONTEXT_MENU())` = 1001` Synonym for[TYPE_CONTEXT_MENU](https://developer.android.com/reference/android/view/PointerIcon.html#TYPE_CONTEXT_MENU())                                                                             |
| `const `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html) | [TYPE_COPY](https://developer.android.com/reference/kotlin/androidx/core/view/PointerIconCompat#TYPE_COPY())` = 1011` Synonym for[TYPE_COPY](https://developer.android.com/reference/android/view/PointerIcon.html#TYPE_COPY())                                                                                                             |
| `const `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html) | [TYPE_CROSSHAIR](https://developer.android.com/reference/kotlin/androidx/core/view/PointerIconCompat#TYPE_CROSSHAIR())` = 1007` Synonym for[TYPE_CROSSHAIR](https://developer.android.com/reference/android/view/PointerIcon.html#TYPE_CROSSHAIR())                                                                                         |
| `const `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html) | [TYPE_DEFAULT](https://developer.android.com/reference/kotlin/androidx/core/view/PointerIconCompat#TYPE_DEFAULT())` = 1000` Synonym for[TYPE_DEFAULT](https://developer.android.com/reference/android/view/PointerIcon.html#TYPE_DEFAULT())                                                                                                 |
| `const `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html) | [TYPE_GRAB](https://developer.android.com/reference/kotlin/androidx/core/view/PointerIconCompat#TYPE_GRAB())` = 1020` Synonym for[TYPE_GRAB](https://developer.android.com/reference/android/view/PointerIcon.html#TYPE_GRAB())                                                                                                             |
| `const `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html) | [TYPE_GRABBING](https://developer.android.com/reference/kotlin/androidx/core/view/PointerIconCompat#TYPE_GRABBING())` = 1021` Synonym for[TYPE_GRABBING](https://developer.android.com/reference/android/view/PointerIcon.html#TYPE_GRABBING())                                                                                             |
| `const `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html) | [TYPE_HAND](https://developer.android.com/reference/kotlin/androidx/core/view/PointerIconCompat#TYPE_HAND())` = 1002` Synonym for[TYPE_HAND](https://developer.android.com/reference/android/view/PointerIcon.html#TYPE_HAND())                                                                                                             |
| `const `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html) | [TYPE_HELP](https://developer.android.com/reference/kotlin/androidx/core/view/PointerIconCompat#TYPE_HELP())` = 1003` Synonym for[TYPE_HELP](https://developer.android.com/reference/android/view/PointerIcon.html#TYPE_HELP())                                                                                                             |
| `const `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html) | [TYPE_HORIZONTAL_DOUBLE_ARROW](https://developer.android.com/reference/kotlin/androidx/core/view/PointerIconCompat#TYPE_HORIZONTAL_DOUBLE_ARROW())` = 1014` Synonym for[TYPE_HORIZONTAL_DOUBLE_ARROW](https://developer.android.com/reference/android/view/PointerIcon.html#TYPE_HORIZONTAL_DOUBLE_ARROW())                                 |
| `const `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html) | [TYPE_NO_DROP](https://developer.android.com/reference/kotlin/androidx/core/view/PointerIconCompat#TYPE_NO_DROP())` = 1012` Synonym for[TYPE_NO_DROP](https://developer.android.com/reference/android/view/PointerIcon.html#TYPE_NO_DROP())                                                                                                 |
| `const `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html) | [TYPE_NULL](https://developer.android.com/reference/kotlin/androidx/core/view/PointerIconCompat#TYPE_NULL())` = 0` Synonym for[TYPE_NULL](https://developer.android.com/reference/android/view/PointerIcon.html#TYPE_NULL())                                                                                                                |
| `const `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html) | [TYPE_TEXT](https://developer.android.com/reference/kotlin/androidx/core/view/PointerIconCompat#TYPE_TEXT())` = 1008` Synonym for[TYPE_TEXT](https://developer.android.com/reference/android/view/PointerIcon.html#TYPE_TEXT())                                                                                                             |
| `const `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html) | [TYPE_TOP_LEFT_DIAGONAL_DOUBLE_ARROW](https://developer.android.com/reference/kotlin/androidx/core/view/PointerIconCompat#TYPE_TOP_LEFT_DIAGONAL_DOUBLE_ARROW())` = 1017` Synonym for[TYPE_TOP_LEFT_DIAGONAL_DOUBLE_ARROW](https://developer.android.com/reference/android/view/PointerIcon.html#TYPE_TOP_LEFT_DIAGONAL_DOUBLE_ARROW())     |
| `const `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html) | [TYPE_TOP_RIGHT_DIAGONAL_DOUBLE_ARROW](https://developer.android.com/reference/kotlin/androidx/core/view/PointerIconCompat#TYPE_TOP_RIGHT_DIAGONAL_DOUBLE_ARROW())` = 1016` Synonym for[TYPE_TOP_RIGHT_DIAGONAL_DOUBLE_ARROW](https://developer.android.com/reference/android/view/PointerIcon.html#TYPE_TOP_RIGHT_DIAGONAL_DOUBLE_ARROW()) |
| `const `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html) | [TYPE_VERTICAL_DOUBLE_ARROW](https://developer.android.com/reference/kotlin/androidx/core/view/PointerIconCompat#TYPE_VERTICAL_DOUBLE_ARROW())` = 1015` Synonym for[TYPE_VERTICAL_DOUBLE_ARROW](https://developer.android.com/reference/android/view/PointerIcon.html#TYPE_VERTICAL_DOUBLE_ARROW())                                         |
| `const `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html) | [TYPE_VERTICAL_TEXT](https://developer.android.com/reference/kotlin/androidx/core/view/PointerIconCompat#TYPE_VERTICAL_TEXT())` = 1009` Synonym for[TYPE_VERTICAL_TEXT](https://developer.android.com/reference/android/view/PointerIcon.html#TYPE_VERTICAL_TEXT())                                                                         |
| `const `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html) | [TYPE_WAIT](https://developer.android.com/reference/kotlin/androidx/core/view/PointerIconCompat#TYPE_WAIT())` = 1004` Synonym for[TYPE_WAIT](https://developer.android.com/reference/android/view/PointerIcon.html#TYPE_WAIT())                                                                                                             |
| `const `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html) | [TYPE_ZOOM_IN](https://developer.android.com/reference/kotlin/androidx/core/view/PointerIconCompat#TYPE_ZOOM_IN())` = 1018` Synonym for[TYPE_ZOOM_IN](https://developer.android.com/reference/android/view/PointerIcon.html#TYPE_ZOOM_IN())                                                                                                 |
| `const `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html) | [TYPE_ZOOM_OUT](https://developer.android.com/reference/kotlin/androidx/core/view/PointerIconCompat#TYPE_ZOOM_OUT())` = 1019` Synonym for[TYPE_ZOOM_OUT](https://developer.android.com/reference/android/view/PointerIcon.html#TYPE_ZOOM_OUT())                                                                                             |

|                                                  ### Public functions                                                  |
|------------------------------------------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `java-static `[PointerIconCompat](https://developer.android.com/reference/kotlin/androidx/core/view/PointerIconCompat) | [create](https://developer.android.com/reference/kotlin/androidx/core/view/PointerIconCompat#create(android.graphics.Bitmap,float,float))`(bitmap: `[Bitmap](https://developer.android.com/reference/android/graphics/Bitmap.html)`, hotSpotX: `[Float](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html)`, hotSpotY: `[Float](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html)`)` Creates a custom pointer from the given bitmap and hotspot information. |
| `java-static `[PointerIconCompat](https://developer.android.com/reference/kotlin/androidx/core/view/PointerIconCompat) | [getSystemIcon](https://developer.android.com/reference/kotlin/androidx/core/view/PointerIconCompat#getSystemIcon(android.content.Context,int))`(context: `[Context](https://developer.android.com/reference/android/content/Context.html)`, style: `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)`)` Gets a system pointer icon for the given style.                                                                                                                     |
| `java-static `[PointerIconCompat](https://developer.android.com/reference/kotlin/androidx/core/view/PointerIconCompat) | [load](https://developer.android.com/reference/kotlin/androidx/core/view/PointerIconCompat#load(android.content.res.Resources,int))`(resources: `[Resources](https://developer.android.com/reference/android/content/res/Resources.html)`, resourceId: `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)`)` Loads a custom pointer icon from an XML resource.                                                                                                                |

## Constants

### TYPE_ALIAS

Added in[1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)  

```
const val TYPE_ALIAS = 1010: Int
```

Synonym for[TYPE_ALIAS](https://developer.android.com/reference/android/view/PointerIcon.html#TYPE_ALIAS())  

### TYPE_ALL_SCROLL

Added in[1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)  

```
const val TYPE_ALL_SCROLL = 1013: Int
```

Synonym for[TYPE_ALL_SCROLL](https://developer.android.com/reference/android/view/PointerIcon.html#TYPE_ALL_SCROLL())  

### TYPE_ARROW

Added in[1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)  

```
const val TYPE_ARROW = 1000: Int
```

Synonym for[TYPE_ARROW](https://developer.android.com/reference/android/view/PointerIcon.html#TYPE_ARROW())  

### TYPE_CELL

Added in[1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)  

```
const val TYPE_CELL = 1006: Int
```

Synonym for[TYPE_CELL](https://developer.android.com/reference/android/view/PointerIcon.html#TYPE_CELL())  

### TYPE_CONTEXT_MENU

Added in[1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)  

```
const val TYPE_CONTEXT_MENU = 1001: Int
```

Synonym for[TYPE_CONTEXT_MENU](https://developer.android.com/reference/android/view/PointerIcon.html#TYPE_CONTEXT_MENU())  

### TYPE_COPY

Added in[1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)  

```
const val TYPE_COPY = 1011: Int
```

Synonym for[TYPE_COPY](https://developer.android.com/reference/android/view/PointerIcon.html#TYPE_COPY())  

### TYPE_CROSSHAIR

Added in[1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)  

```
const val TYPE_CROSSHAIR = 1007: Int
```

Synonym for[TYPE_CROSSHAIR](https://developer.android.com/reference/android/view/PointerIcon.html#TYPE_CROSSHAIR())  

### TYPE_DEFAULT

Added in[1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)  

```
const val TYPE_DEFAULT = 1000: Int
```

Synonym for[TYPE_DEFAULT](https://developer.android.com/reference/android/view/PointerIcon.html#TYPE_DEFAULT())  

### TYPE_GRAB

Added in[1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)  

```
const val TYPE_GRAB = 1020: Int
```

Synonym for[TYPE_GRAB](https://developer.android.com/reference/android/view/PointerIcon.html#TYPE_GRAB())  

### TYPE_GRABBING

Added in[1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)  

```
const val TYPE_GRABBING = 1021: Int
```

Synonym for[TYPE_GRABBING](https://developer.android.com/reference/android/view/PointerIcon.html#TYPE_GRABBING())  

### TYPE_HAND

Added in[1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)  

```
const val TYPE_HAND = 1002: Int
```

Synonym for[TYPE_HAND](https://developer.android.com/reference/android/view/PointerIcon.html#TYPE_HAND())  

### TYPE_HELP

Added in[1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)  

```
const val TYPE_HELP = 1003: Int
```

Synonym for[TYPE_HELP](https://developer.android.com/reference/android/view/PointerIcon.html#TYPE_HELP())  

### TYPE_HORIZONTAL_DOUBLE_ARROW

Added in[1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)  

```
const val TYPE_HORIZONTAL_DOUBLE_ARROW = 1014: Int
```

Synonym for[TYPE_HORIZONTAL_DOUBLE_ARROW](https://developer.android.com/reference/android/view/PointerIcon.html#TYPE_HORIZONTAL_DOUBLE_ARROW())  

### TYPE_NO_DROP

Added in[1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)  

```
const val TYPE_NO_DROP = 1012: Int
```

Synonym for[TYPE_NO_DROP](https://developer.android.com/reference/android/view/PointerIcon.html#TYPE_NO_DROP())  

### TYPE_NULL

Added in[1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)  

```
const val TYPE_NULL = 0: Int
```

Synonym for[TYPE_NULL](https://developer.android.com/reference/android/view/PointerIcon.html#TYPE_NULL())  

### TYPE_TEXT

Added in[1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)  

```
const val TYPE_TEXT = 1008: Int
```

Synonym for[TYPE_TEXT](https://developer.android.com/reference/android/view/PointerIcon.html#TYPE_TEXT())  

### TYPE_TOP_LEFT_DIAGONAL_DOUBLE_ARROW

Added in[1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)  

```
const val TYPE_TOP_LEFT_DIAGONAL_DOUBLE_ARROW = 1017: Int
```

Synonym for[TYPE_TOP_LEFT_DIAGONAL_DOUBLE_ARROW](https://developer.android.com/reference/android/view/PointerIcon.html#TYPE_TOP_LEFT_DIAGONAL_DOUBLE_ARROW())  

### TYPE_TOP_RIGHT_DIAGONAL_DOUBLE_ARROW

Added in[1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)  

```
const val TYPE_TOP_RIGHT_DIAGONAL_DOUBLE_ARROW = 1016: Int
```

Synonym for[TYPE_TOP_RIGHT_DIAGONAL_DOUBLE_ARROW](https://developer.android.com/reference/android/view/PointerIcon.html#TYPE_TOP_RIGHT_DIAGONAL_DOUBLE_ARROW())  

### TYPE_VERTICAL_DOUBLE_ARROW

Added in[1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)  

```
const val TYPE_VERTICAL_DOUBLE_ARROW = 1015: Int
```

Synonym for[TYPE_VERTICAL_DOUBLE_ARROW](https://developer.android.com/reference/android/view/PointerIcon.html#TYPE_VERTICAL_DOUBLE_ARROW())  

### TYPE_VERTICAL_TEXT

Added in[1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)  

```
const val TYPE_VERTICAL_TEXT = 1009: Int
```

Synonym for[TYPE_VERTICAL_TEXT](https://developer.android.com/reference/android/view/PointerIcon.html#TYPE_VERTICAL_TEXT())  

### TYPE_WAIT

Added in[1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)  

```
const val TYPE_WAIT = 1004: Int
```

Synonym for[TYPE_WAIT](https://developer.android.com/reference/android/view/PointerIcon.html#TYPE_WAIT())  

### TYPE_ZOOM_IN

Added in[1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)  

```
const val TYPE_ZOOM_IN = 1018: Int
```

Synonym for[TYPE_ZOOM_IN](https://developer.android.com/reference/android/view/PointerIcon.html#TYPE_ZOOM_IN())  

### TYPE_ZOOM_OUT

Added in[1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)  

```
const val TYPE_ZOOM_OUT = 1019: Int
```

Synonym for[TYPE_ZOOM_OUT](https://developer.android.com/reference/android/view/PointerIcon.html#TYPE_ZOOM_OUT())  

## Public functions

### create

Added in[1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)  

```
java-static fun create(bitmap: Bitmap, hotSpotX: Float, hotSpotY: Float): PointerIconCompat
```

Creates a custom pointer from the given bitmap and hotspot information.  

|                                         Parameters                                          |
|---------------------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------|
| `bitmap: `[Bitmap](https://developer.android.com/reference/android/graphics/Bitmap.html)    | The bitmap for the icon.                                                                                   |
| `hotSpotX: `[Float](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html) | The X offset of the pointer icon hotspot in the bitmap. Must be within the \[0, bitmap.getWidth()) range.  |
| `hotSpotY: `[Float](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html) | The Y offset of the pointer icon hotspot in the bitmap. Must be within the \[0, bitmap.getHeight()) range. |

|                                                 Returns                                                  |
|----------------------------------------------------------------------------------------------------------|---------------------------------|
| [PointerIconCompat](https://developer.android.com/reference/kotlin/androidx/core/view/PointerIconCompat) | A pointer icon for this bitmap. |

|                                                        Throws                                                         |
|-----------------------------------------------------------------------------------------------------------------------|------------------------------------------------------------------|
| [java.lang.IllegalArgumentException](https://developer.android.com/reference/java/lang/IllegalArgumentException.html) | if bitmap is null, or if the x/y hotspot parameters are invalid. |

### getSystemIcon

Added in[1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)  

```
java-static fun getSystemIcon(context: Context, style: Int): PointerIconCompat
```

Gets a system pointer icon for the given style. If style is not recognized, returns the default pointer icon.  

|                                         Parameters                                         |
|--------------------------------------------------------------------------------------------|-------------------------|
| `context: `[Context](https://developer.android.com/reference/android/content/Context.html) | The context.            |
| `style: `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)       | The pointer icon style. |

|                                                 Returns                                                  |
|----------------------------------------------------------------------------------------------------------|-------------------|
| [PointerIconCompat](https://developer.android.com/reference/kotlin/androidx/core/view/PointerIconCompat) | The pointer icon. |

### load

Added in[1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)  

```
java-static fun load(resources: Resources, resourceId: Int): PointerIconCompat
```

Loads a custom pointer icon from an XML resource.

The XML resource should have the following form:`
<?xml version="1.0" encoding="utf-8"?>
<pointer-icon xmlns:android="http://schemas.android.com/apk/res/android"
android:bitmap="@drawable/my_pointer_bitmap"
android:hotSpotX="24"
android:hotSpotY="24" />
`  

|                                              Parameters                                              |
|------------------------------------------------------------------------------------------------------|-----------------------|
| `resources: `[Resources](https://developer.android.com/reference/android/content/res/Resources.html) | The resources object. |
| `resourceId: `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)            | The resource id.      |

|                                                 Returns                                                  |
|----------------------------------------------------------------------------------------------------------|-------------------|
| [PointerIconCompat](https://developer.android.com/reference/kotlin/androidx/core/view/PointerIconCompat) | The pointer icon. |

|                                                                     Throws                                                                      |
|-------------------------------------------------------------------------------------------------------------------------------------------------|-------------------------------------------------------------------------------------|
| [android.content.res.Resources.NotFoundException](https://developer.android.com/reference/android/content/res/Resources.NotFoundException.html) | if the resource was not found or the drawable linked in the resource was not found. |