PointerIconCompat

public final class PointerIconCompat
extends Object

java.lang.Object
   ↳ androidx.core.view.PointerIconCompat


Helper for accessing features in PointerIcon in a backwards compatible fashion.

Summary

Constants

int TYPE_ALIAS

Synonym for PointerIcon.TYPE_ALIAS

int TYPE_ALL_SCROLL

Synonym for PointerIcon.TYPE_ALL_SCROLL

int TYPE_ARROW

Synonym for PointerIcon.TYPE_ARROW

int TYPE_CELL

Synonym for PointerIcon.TYPE_CELL

int TYPE_CONTEXT_MENU

Synonym for PointerIcon.TYPE_CONTEXT_MENU

int TYPE_COPY

Synonym for PointerIcon.TYPE_COPY

int TYPE_CROSSHAIR

Synonym for PointerIcon.TYPE_CROSSHAIR

int TYPE_DEFAULT

Synonym for PointerIcon.TYPE_DEFAULT

int TYPE_GRAB

Synonym for PointerIcon.TYPE_GRAB

int TYPE_GRABBING

Synonym for PointerIcon.TYPE_GRABBING

int TYPE_HAND

Synonym for PointerIcon.TYPE_HAND

int TYPE_HELP

Synonym for PointerIcon.TYPE_HELP

int TYPE_HORIZONTAL_DOUBLE_ARROW

Synonym for PointerIcon.TYPE_HORIZONTAL_DOUBLE_ARROW

int TYPE_NO_DROP

Synonym for PointerIcon.TYPE_NO_DROP

int TYPE_NULL

Synonym for PointerIcon.TYPE_NULL

int TYPE_TEXT

Synonym for PointerIcon.TYPE_TEXT

int TYPE_TOP_LEFT_DIAGONAL_DOUBLE_ARROW

Synonym for PointerIcon.TYPE_TOP_LEFT_DIAGONAL_DOUBLE_ARROW

int TYPE_TOP_RIGHT_DIAGONAL_DOUBLE_ARROW

Synonym for PointerIcon.TYPE_TOP_RIGHT_DIAGONAL_DOUBLE_ARROW

int TYPE_VERTICAL_DOUBLE_ARROW

Synonym for PointerIcon.TYPE_VERTICAL_DOUBLE_ARROW

int TYPE_VERTICAL_TEXT

Synonym for PointerIcon.TYPE_VERTICAL_TEXT

int TYPE_WAIT

Synonym for PointerIcon.TYPE_WAIT

int TYPE_ZOOM_IN

Synonym for PointerIcon.TYPE_ZOOM_IN

int TYPE_ZOOM_OUT

Synonym for PointerIcon.TYPE_ZOOM_OUT

Public methods

static PointerIconCompat create(Bitmap bitmap, float hotSpotX, float hotSpotY)

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

static PointerIconCompat getSystemIcon(Context context, int style)

Gets a system pointer icon for the given style.

static PointerIconCompat load(Resources resources, int resourceId)

Loads a custom pointer icon from an XML resource.

Inherited methods

Constants

TYPE_ALIAS

public static final int TYPE_ALIAS

Synonym for PointerIcon.TYPE_ALIAS

Constant Value: 1010 (0x000003f2)

TYPE_ALL_SCROLL

public static final int TYPE_ALL_SCROLL

Synonym for PointerIcon.TYPE_ALL_SCROLL

Constant Value: 1013 (0x000003f5)

TYPE_ARROW

public static final int TYPE_ARROW

Synonym for PointerIcon.TYPE_ARROW

Constant Value: 1000 (0x000003e8)

TYPE_CELL

public static final int TYPE_CELL

Synonym for PointerIcon.TYPE_CELL

Constant Value: 1006 (0x000003ee)

TYPE_CONTEXT_MENU

public static final int TYPE_CONTEXT_MENU

Synonym for PointerIcon.TYPE_CONTEXT_MENU

Constant Value: 1001 (0x000003e9)

TYPE_COPY

public static final int TYPE_COPY

Synonym for PointerIcon.TYPE_COPY

Constant Value: 1011 (0x000003