MissingSplitsManager
public
interface
MissingSplitsManager
com.google.android.play.core.missingsplits.MissingSplitsManager |
Handles situations when the installed app is missing required split APKs.
To learn more, read Verify non-Google Play app installs.
Summary
Public methods | |
---|---|
abstract
boolean
|
disableAppIfMissingRequiredSplits()
If your app is missing a required split APK, this API gracefully closes the app. |
abstract
boolean
|
isMissingRequiredSplits()
Checks whether the app is missing a required split APK, without any side effects, such as disabling the app. |
Public methods
disableAppIfMissingRequiredSplits
boolean disableAppIfMissingRequiredSplits ()
If your app is missing a required split APK, this API gracefully closes the app. Additionally, if the app is started by an explicit user action, the user is informed that the app is not installed correctly.
Using this API might include the following side effects:
- If a required split APK is missing, disables all non-activity app components.
- if no required split APK is missing and all non-activity components are currently disabled (indicating that their state was manipulated by PlayCore), resets all non activity app components to their default enabled state.
- Stops the current OS process (including explicitly cancelling all app tasks via
finishAndRemoveTask()
) and starts a new OS process for PlayCoreMissingSplitsActivity.
For examples of typical use cases, including usages in onCreate()
, see
Check for
missing app components.
Returns | |
---|---|
boolean |
true if the app is missing some required splits, false otherwise |
isMissingRequiredSplits
boolean isMissingRequiredSplits ()
Checks whether the app is missing a required split APK, without any side effects, such as disabling the app.
You should typically use this API to manually skip initialization logic of custom ContentProvider
implementations. That's because ContentProvider
instances are
initialized before the Application
.
For examples of typical use cases, including usage in onCreate()
,
see Check for
missing app components.
Returns | |
---|---|
boolean |
true if the app is missing some required splits, false otherwise |
Interfaces
Classes