Package org.robolectric.shadows
Class ShadowAppFunctionManager
java.lang.Object
org.robolectric.shadows.ShadowAppFunctionManager
@Implements(value=android.app.appfunctions.AppFunctionManager.class,
minSdk=36,
isInAndroidSdk=false)
public class ShadowAppFunctionManager
extends Object
Shadow for the
AppFunctionManager framework class.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidisAppFunctionEnabledInternal(String functionIdentifier, String targetPackage, Executor executor, OutcomeReceiver<Boolean, Exception> callback) protected voidsetAppFunctionEnabled(String functionIdentifier, int state, Executor executor, OutcomeReceiver<Void, Exception> callback) voidsetAppFunctionExists(String functionIdentifier, boolean exists) Allows simulating the app function not existing in system server by making theAppFunctionManagerreturn anIllegalArgumentExceptionin the associated error callbacks ifexistsisfalse.
-
Constructor Details
-
ShadowAppFunctionManager
public ShadowAppFunctionManager()
-
-
Method Details
-
isAppFunctionEnabledInternal
@Implementation protected void isAppFunctionEnabledInternal(String functionIdentifier, String targetPackage, Executor executor, OutcomeReceiver<Boolean, Exception> callback) -
setAppFunctionEnabled
@Implementation protected void setAppFunctionEnabled(String functionIdentifier, int state, Executor executor, OutcomeReceiver<Void, Exception> callback) -
setAppFunctionExists
Allows simulating the app function not existing in system server by making theAppFunctionManagerreturn anIllegalArgumentExceptionin the associated error callbacks ifexistsisfalse.
-