Flutter Engine
The Flutter Engine
shell
platform
android
io
flutter
view
FlutterCallbackInformation.java
Go to the documentation of this file.
1
// Copyright 2013 The Flutter Authors. All rights reserved.
2
// Use of this source code is governed by a BSD-style license that can be
3
// found in the LICENSE file.
4
5
package
io.flutter.view;
6
7
import
androidx.annotation.Keep;
8
import
io.flutter.embedding.engine.FlutterJNI;
9
10
/**
11
* A class representing information for a callback registered using `PluginUtilities` from
12
* `dart:ui`.
13
*/
14
@Keep
15
public
final
class
FlutterCallbackInformation
{
16
public
final
String
callbackName
;
17
public
final
String
callbackClassName
;
18
public
final
String
callbackLibraryPath
;
19
20
/**
21
* Get callback information for a given handle.
22
*
23
* @param handle the handle for the callback, generated by `PluginUtilities.getCallbackHandle` in
24
* `dart:ui`.
25
* @return an instance of FlutterCallbackInformation for the provided handle.
26
*/
27
public
static
FlutterCallbackInformation
lookupCallbackInformation
(
long
handle) {
28
return
FlutterJNI
.
nativeLookupCallbackInformation
(handle);
29
}
30
31
private
FlutterCallbackInformation
(
32
String
callbackName
, String
callbackClassName
, String
callbackLibraryPath
) {
33
this.callbackName =
callbackName
;
34
this.callbackClassName =
callbackClassName
;
35
this.callbackLibraryPath =
callbackLibraryPath
;
36
}
37
}
io.flutter.embedding.engine.FlutterJNI
Definition:
FlutterJNI.java:106
io.flutter.embedding.engine.FlutterJNI.nativeLookupCallbackInformation
static native FlutterCallbackInformation nativeLookupCallbackInformation(long handle)
io.flutter.view.FlutterCallbackInformation
Definition:
FlutterCallbackInformation.java:15
io.flutter.view.FlutterCallbackInformation.lookupCallbackInformation
static FlutterCallbackInformation lookupCallbackInformation(long handle)
Definition:
FlutterCallbackInformation.java:27
io.flutter.view.FlutterCallbackInformation.callbackLibraryPath
final String callbackLibraryPath
Definition:
FlutterCallbackInformation.java:18
io.flutter.view.FlutterCallbackInformation.callbackName
final String callbackName
Definition:
FlutterCallbackInformation.java:16
io.flutter.view.FlutterCallbackInformation.callbackClassName
final String callbackClassName
Definition:
FlutterCallbackInformation.java:17
Generated on Sun Jun 23 2024 21:55:10 for Flutter Engine by
1.9.4