blockly > Kliknij > getTouchIdentifierFromEvent
Funkcja Touch.getTouchIdentifierFromEvent()
Pobierz identyfikator wskaźnika z danego zdarzenia.
Podpis:
export declare function getTouchIdentifierFromEvent(e: PointerEvent): string;
Parametry
Parametr |
Typ |
Opis |
e |
PointerEvent |
Zdarzenie wskaźnika. |
Zwroty:
ciąg znaków
Identyfikator wskaźnika zdarzenia.
O ile nie stwierdzono inaczej, treść tej strony jest objęta licencją Creative Commons – uznanie autorstwa 4.0, a fragmenty kodu są dostępne na licencji Apache 2.0. Szczegółowe informacje na ten temat zawierają zasady dotyczące witryny Google Developers. Java jest zastrzeżonym znakiem towarowym firmy Oracle i jej podmiotów stowarzyszonych.
Ostatnia aktualizacja: 2024-09-12 UTC.
[null,null,["Ostatnia aktualizacja: 2024-09-12 UTC."],[[["Retrieves the unique identifier associated with a touch event, allowing tracking of individual touch interactions."],["Accepts a PointerEvent as input, which encapsulates information about touch or mouse events."],["Returns the pointerId as a string, representing the identifier for the specific touch point."]]],[]]