AppFunctionContext


public interface AppFunctionContext


The execution context of app function.

Summary

Public methods

abstract @NonNull String

Return the name of the package that invoked this AppFunction.

abstract @NonNull Context

The Android context.

Public methods

getCallingPackageName

Added in 1.0.0-alpha01
abstract @NonNull String getCallingPackageName()

Return the name of the package that invoked this AppFunction. You can use this information to validate the caller.

getContext

Added in 1.0.0-alpha01
abstract @NonNull Context getContext()

The Android context.