This repository was archived by the owner on Feb 25, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 6k
Updated background execution implementation for Android #5640
Merged
Merged
Changes from all commits
Commits
Show all changes
11 commits
Select commit
Hold shift + click to select a range
1be3595
Updated background execution implementation for Android
bkonyi ca823d9
Reverted formatting on FlutterView.java
bkonyi 1e36a0d
Updated to use DartCallbackCache to lookup callbacks
bkonyi 67dc24a
Updated runFromBundle to take an args object; deprecated old signatures
bkonyi 2dab42a
whitespace
bkonyi f02d63a
remove whitespace
bkonyi 8cc0880
Updated licenses
bkonyi fcc1c03
Reverted local changes to licenses.sh
bkonyi 2449c41
Thinking positively
bkonyi 8868cdf
Removed "onStarted" events + hooks
bkonyi 109b34e
Updated licenses
bkonyi File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why does a headless shell need to be designated as a background view?
Would it be sufficient to create a standard shell and just not attach a surface?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This flag determines whether or not a surface is created for the platform view and what number of task runners are created (see here)