Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
liujiuri
engine
提交
2466d31e
E
engine
项目概览
liujiuri
/
engine
与 Fork 源项目一致
从无法访问的项目Fork
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
E
engine
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
2466d31e
编写于
2月 03, 2017
作者:
J
Jason Simmons
提交者:
GitHub
2月 03, 2017
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Fix some Javadoc warnings (#3391)
上级
cd34b0ef
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
25 addition
and
1 deletion
+25
-1
shell/platform/android/io/flutter/app/FlutterActivity.java
shell/platform/android/io/flutter/app/FlutterActivity.java
+1
-0
shell/platform/android/io/flutter/view/FlutterMain.java
shell/platform/android/io/flutter/view/FlutterMain.java
+6
-0
shell/platform/android/io/flutter/view/FlutterView.java
shell/platform/android/io/flutter/view/FlutterView.java
+18
-1
未找到文件。
shell/platform/android/io/flutter/app/FlutterActivity.java
浏览文件 @
2466d31e
...
...
@@ -146,6 +146,7 @@ public class FlutterActivity extends Activity {
/**
* Returns the Flutter view used by this activity, may be null before
* onCreate was called.
* @return The FlutterView.
*/
public
FlutterView
getFlutterView
()
{
return
flutterView
;
...
...
shell/platform/android/io/flutter/view/FlutterMain.java
浏览文件 @
2466d31e
...
...
@@ -121,6 +121,7 @@ public class FlutterMain {
/**
* Set the tag associated with Flutter app log messages.
* @param tag Log tag.
*/
public
void
setLogTag
(
String
tag
)
{
logTag
=
tag
;
...
...
@@ -129,6 +130,7 @@ public class FlutterMain {
/**
* Starts initialization of the native system.
* @param applicationContext The Android application context.
*/
public
static
void
startInitialization
(
Context
applicationContext
)
{
startInitialization
(
applicationContext
,
new
Settings
());
...
...
@@ -136,6 +138,8 @@ public class FlutterMain {
/**
* Starts initialization of the native system.
* @param applicationContext The Android application context.
* @param settings Configuration settings.
*/
public
static
void
startInitialization
(
Context
applicationContext
,
Settings
settings
)
{
sSettings
=
settings
;
...
...
@@ -158,6 +162,8 @@ public class FlutterMain {
/**
* Blocks until initialization of the native system has completed.
* @param applicationContext The Android application context.
* @param args Flags sent to the Flutter runtime.
*/
public
static
void
ensureInitializationComplete
(
Context
applicationContext
,
String
[]
args
)
{
if
(
sInitialized
)
{
...
...
shell/platform/android/io/flutter/view/FlutterView.java
浏览文件 @
2466d31e
...
...
@@ -519,7 +519,10 @@ public class FlutterView extends SurfaceView
}
}
/** Return the most recent frame as a bitmap. */
/**
* Return the most recent frame as a bitmap.
* @return A bitmap.
*/
public
Bitmap
getBitmap
()
{
return
nativeGetBitmap
(
mNativePlatformView
);
}
...
...
@@ -741,6 +744,9 @@ public class FlutterView extends SurfaceView
* Send a message to the Flutter application. The Flutter application can
* register a platform message handler that will receive these messages with
* the PlatformMessages object.
* @param channel Name of the channel that will receive this message.
* @param message Message payload.
* @param callback Callback that receives a reply from the application.
*/
public
void
sendPlatformMessage
(
String
channel
,
String
message
,
MessageReplyCallback
callback
)
{
int
responseId
=
0
;
...
...
@@ -754,6 +760,9 @@ public class FlutterView extends SurfaceView
/**
* Send a message to the Flutter application. The Flutter Dart code can register a
* host message handler that will receive these messages.
* @param channel Name of the channel that will receive this message.
* @param message Message payload.
* @param callback Callback that receives a reply from the application.
*/
public
void
sendToFlutter
(
String
channel
,
String
message
,
MessageReplyCallback
callback
)
{
sendPlatformMessage
(
channel
,
message
,
callback
);
...
...
@@ -771,6 +780,8 @@ public class FlutterView extends SurfaceView
/**
* Register a callback to be invoked when the Flutter application sends a message
* to its host.
* @param channel Name of the channel used by the application.
* @param listener Called when messages arrive.
*/
public
void
addOnMessageListener
(
String
channel
,
OnMessageListener
listener
)
{
mOnMessageListeners
.
put
(
channel
,
listener
);
...
...
@@ -779,6 +790,8 @@ public class FlutterView extends SurfaceView
/**
* Register a callback to be invoked when the Flutter application sends a message
* to its host. The reply to the message can be provided asynchronously.
* @param channel Name of the channel used by the application.
* @param listener Called when messages arrive.
*/
public
void
addOnMessageListenerAsync
(
String
channel
,
OnMessageListenerAsync
listener
)
{
mAsyncOnMessageListeners
.
put
(
channel
,
listener
);
...
...
@@ -787,6 +800,8 @@ public class FlutterView extends SurfaceView
public
interface
OnMessageListener
{
/**
* Called when a message is received from the Flutter app.
* @param view The Flutter view hosting the app.
* @param message Message payload.
* @return the reply to the message (can be null)
*/
String
onMessage
(
FlutterView
view
,
String
message
);
...
...
@@ -795,6 +810,8 @@ public class FlutterView extends SurfaceView
public
interface
OnMessageListenerAsync
{
/**
* Called when a message is received from the Flutter app.
* @param view The Flutter view hosting the app.
* @param message Message payload.
* @param response Used to send a reply back to the app.
*/
void
onMessage
(
FlutterView
view
,
String
message
,
MessageResponse
response
);
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录