-
Notifications
You must be signed in to change notification settings - Fork 6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Reland "Updated background execution implementation for Android" (#5954)
* Reland "Updated background execution implementation for Android" w/ JNI fixes for merge breakages This reverts commit 5442c0a.
- Loading branch information
Showing
14 changed files
with
333 additions
and
115 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
34 changes: 34 additions & 0 deletions
34
shell/platform/android/io/flutter/view/FlutterCallbackInformation.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
// Copyright 2018 The Chromium Authors. All rights reserved. | ||
// Use of this source code is governed by a BSD-style license that can be | ||
// found in the LICENSE file. | ||
|
||
package io.flutter.view; | ||
|
||
/** | ||
* A class representing information for a callback registered using | ||
* `PluginUtilities` from `dart:ui`. | ||
*/ | ||
public final class FlutterCallbackInformation { | ||
final public String callbackName; | ||
final public String callbackClassName; | ||
final public String callbackLibraryPath; | ||
|
||
/** | ||
* Get callback information for a given handle. | ||
* @param handle the handle for the callback, generated by | ||
* `PluginUtilities.getCallbackHandle` in `dart:ui`. | ||
* @return an instance of FlutterCallbackInformation for the provided handle. | ||
*/ | ||
public static FlutterCallbackInformation lookupCallbackInformation(long handle) { | ||
return nativeLookupCallbackInformation(handle); | ||
} | ||
|
||
private FlutterCallbackInformation(String callbackName, | ||
String callbackClassName, String callbackLibraryPath) { | ||
this.callbackName = callbackName; | ||
this.callbackClassName = callbackClassName; | ||
this.callbackLibraryPath = callbackLibraryPath; | ||
} | ||
|
||
private static native FlutterCallbackInformation nativeLookupCallbackInformation(long handle); | ||
} |
Oops, something went wrong.