createSession method Null safety
- int device
Associate a pointing device to this cursor.
A mouse cursor class usually has a corresponding MouseCursorSession class, and instantiates such class in this method.
This method is called each time a pointing device starts displaying this cursor. A given cursor can be displayed by multiple devices at the same time, in which case this method will be called separately for each device.
@protected @factory MouseCursorSession createSession(int device);