Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2025-05-15 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-05-15 UTC."],[],[],null,["# PointerId\n=========\n\nArtifact: [androidx.compose.ui:ui](/jetpack/androidx/releases/compose-ui) \n[View Source](https://cs.android.com/search?q=file:androidx/compose/ui/input/pointer/PointerEvent.kt+class:androidx.compose.ui.input.pointer.PointerId) \nAdded in [1.0.0](/jetpack/androidx/releases/compose-ui#1.0.0)\nCommon/AllAndroid/JVM\n - Cmn \n\n ```\n value class PointerId\n ```\n\n*** ** * ** ***\n\nAn ID for a given pointer.\n\nSummary\n-------\n\n| ### Public constructors |\n|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|-----|\n| [PointerId](/reference/kotlin/androidx/compose/ui/input/pointer/PointerId#PointerId(kotlin.Long))`(value: `[Long](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html)`)` | Cmn |\n\n| ### Public properties |\n|-------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------|-----|\n| [Long](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html) | [value](/reference/kotlin/androidx/compose/ui/input/pointer/PointerId#value()) The actual value of the id. | Cmn |\n\nPublic constructors\n-------------------\n\n### PointerId\n\nCmn \nAdded in [1.2.0](/jetpack/androidx/releases/compose-ui#1.2.0) \n\n```\nPointerId(value: Long)\n``` \n\n| Parameters |\n|----------------------------------------------------------------------------------------|-----------------------------|\n| `value: `[Long](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html) | The actual value of the id. |\n\nPublic properties\n-----------------\n\n### value\n\nCmn \nAdded in [1.0.0](/jetpack/androidx/releases/compose-ui#1.0.0) \n\n```\nval value: Long\n```\n\nThe actual value of the id."]]