Flutter Engine
The Flutter Engine
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
5package io.flutter.view;
6
7import androidx.annotation.Keep;
8import 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
15public 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 */
29 }
30
32 String callbackName, String callbackClassName, String callbackLibraryPath) {
33 this.callbackName = callbackName;
34 this.callbackClassName = callbackClassName;
35 this.callbackLibraryPath = callbackLibraryPath;
36 }
37}
static native FlutterCallbackInformation nativeLookupCallbackInformation(long handle)
static FlutterCallbackInformation lookupCallbackInformation(long handle)