Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
F
Front-End
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
abdullh.alsoleman
Front-End
Commits
a76bb1a0
Unverified
Commit
a76bb1a0
authored
Dec 12, 2020
by
Gary Qian
Committed by
GitHub
Dec 12, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add DynamicFeature system channel (#71879)
parent
d075b979
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
26 additions
and
0 deletions
+26
-0
system_channels.dart
packages/flutter/lib/src/services/system_channels.dart
+26
-0
No files found.
packages/flutter/lib/src/services/system_channels.dart
View file @
a76bb1a0
...
...
@@ -318,4 +318,30 @@ class SystemChannels {
'flutter/restoration'
,
StandardMethodCodec
(),
);
/// A [MethodChannel] for installing and managing dynamic features.
///
/// The following outgoing methods are defined for this channel (invoked using
/// [OptionalMethodChannel.invokeMethod]):
///
/// * `installDynamicFeature`: Requests that a dynamic feature identified by
/// the provided loadingUnitId or moduleName be downloaded and installed.
/// Providing a loadingUnitId with null moduleName will install a dynamic
/// feature module that includes the desired loading unit. If a moduleName
/// is provided, then the dynamic feature with the moduleName will be installed.
/// This method returns a future that will not be completed until the
/// feature is fully installed and ready to use. When an error occurs, the
/// future will complete an error. Calling `loadLibrary()` on a deferred
/// imported library is equivalent to calling this method with a
/// loadingUnitId and null moduleName.
/// * `getDynamicFeatureInstallState`: Gets the current installation state of
/// the dynamic feature identified by the loadingUnitId or moduleName.
/// This method returns a string that represents the state. Depending on
/// the implementation, this string may vary, but the default Google Play
/// Store implementation beings in the "Requested" state before transitioning
/// into the "Downloading" and finally the "Installed" state.
static
const
MethodChannel
dynamicfeature
=
OptionalMethodChannel
(
'flutter/dynamicfeature'
,
StandardMethodCodec
(),
);
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment