Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
Classes | Public Member Functions | List of all members
io.flutter.plugin.mouse.MouseCursorPlugin Class Reference

Classes

interface  MouseCursorViewDelegate
 

Public Member Functions

 MouseCursorPlugin ( @NonNull MouseCursorViewDelegate view, @NonNull MouseCursorChannel mouseCursorChannel)
 
void destroy ()
 

Detailed Description

A mandatory plugin that handles mouse cursor requests.

Definition at line 19 of file MouseCursorPlugin.java.

Constructor & Destructor Documentation

◆ MouseCursorPlugin()

io.flutter.plugin.mouse.MouseCursorPlugin.MouseCursorPlugin ( @NonNull MouseCursorViewDelegate  view,
@NonNull MouseCursorChannel  mouseCursorChannel 
)
inline

Definition at line 23 of file MouseCursorPlugin.java.

24 {
25 mView = view;
26
27 this.mouseCursorChannel = mouseCursorChannel;
28 mouseCursorChannel.setMethodHandler(
29 new MouseCursorChannel.MouseCursorMethodHandler() {
30 @Override
31 public void activateSystemCursor(@NonNull String kind) {
32 mView.setPointerIcon(resolveSystemCursor(kind));
33 }
34 });
35 }

Member Function Documentation

◆ destroy()

void io.flutter.plugin.mouse.MouseCursorPlugin.destroy ( )
inline

Detaches the text input plugin from the platform views controller.

The MouseCursorPlugin instance should not be used after calling this.

Definition at line 99 of file MouseCursorPlugin.java.

99 {
100 mouseCursorChannel.setMethodHandler(null);
101 }

The documentation for this class was generated from the following file: