Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
Classes | Public Attributes | Static Package Functions | Package Attributes | List of all members
io.flutter.embedding.android.KeyboardManagerTest.CallRecord Class Reference

Classes

enum  Kind
 

Public Attributes

Consumer< Boolean > reply
 
JSONObject channelObject
 
KeyData keyData
 

Static Package Functions

static CallRecord channelCall ( @NonNull JSONObject channelObject, @Nullable Consumer< Boolean > reply)
 
static CallRecord embedderCall (@NonNull KeyData keyData, @Nullable Consumer< Boolean > reply)
 

Package Attributes

Kind kind
 

Detailed Description

Records a message that KeyboardManager sends to outside.

A call record can originate from many sources, indicated by its type. Different types will have different fields filled, leaving others empty.

Definition at line 71 of file KeyboardManagerTest.java.

Member Function Documentation

◆ channelCall()

static CallRecord io.flutter.embedding.android.KeyboardManagerTest.CallRecord.channelCall ( @NonNull JSONObject  channelObject,
@Nullable Consumer< Boolean >  reply 
)
inlinestaticpackage

Construct a call record of kind Kind.kChannel.

Definition at line 111 of file KeyboardManagerTest.java.

112 {
113 final CallRecord record = new CallRecord();
114 record.kind = Kind.kChannel;
115 record.channelObject = channelObject;
116 record.reply = reply;
117 return record;
118 }

◆ embedderCall()

static CallRecord io.flutter.embedding.android.KeyboardManagerTest.CallRecord.embedderCall ( @NonNull KeyData  keyData,
@Nullable Consumer< Boolean >  reply 
)
inlinestaticpackage

Construct a call record of kind Kind.kEmbedder.

Definition at line 121 of file KeyboardManagerTest.java.

121 {
122 final CallRecord record = new CallRecord();
123 record.kind = Kind.kEmbedder;
124 record.keyData = keyData;
125 record.reply = reply;
126 return record;
127 }

Member Data Documentation

◆ channelObject

JSONObject io.flutter.embedding.android.KeyboardManagerTest.CallRecord.channelObject

The data for a call record of kind Kind.kChannel.

Definition at line 106 of file KeyboardManagerTest.java.

◆ keyData

KeyData io.flutter.embedding.android.KeyboardManagerTest.CallRecord.keyData

The data for a call record of kind Kind.kEmbedder.

Definition at line 108 of file KeyboardManagerTest.java.

◆ kind

Kind io.flutter.embedding.android.KeyboardManagerTest.CallRecord.kind
package

Definition at line 95 of file KeyboardManagerTest.java.

◆ reply

Consumer<Boolean> io.flutter.embedding.android.KeyboardManagerTest.CallRecord.reply

The callback given by the keyboard manager.

It might be null, which probably means it is a synthesized event and requires no reply. Otherwise, invoke this callback with whether the event is handled for the keyboard manager to continue processing the key event.

Definition at line 104 of file KeyboardManagerTest.java.


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