Stay organized with collections
Save and categorize content based on your preferences.
public interface AppFunctionContext
The execution context of app function.
Summary
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2025-08-13 UTC.
[null,null,["Last updated 2025-08-13 UTC."],[],[],null,["# AppFunctionContext\n==================\n\nArtifact: [androidx.appfunctions:appfunctions](/jetpack/androidx/releases/appfunctions) \n[View Source](https://cs.android.com/search?q=file:androidx/appfunctions/AppFunctionContext.kt+class:androidx.appfunctions.AppFunctionContext) \nAdded in [1.0.0-alpha03](/jetpack/androidx/releases/appfunctions#1.0.0-alpha03)\n\n*** ** * ** ***\n\n[Kotlin](/reference/kotlin/androidx/appfunctions/AppFunctionContext \"View this page in Kotlin\") \\|Java\n\n\n```\npublic interface AppFunctionContext\n```\n\n\u003cbr /\u003e\n\n*** ** * ** ***\n\nThe execution context of app function.\n\nSummary\n-------\n\n| ### Public methods |\n|-------------------------------------------------------------------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------|\n| `abstract @`[NonNull](/reference/androidx/annotation/NonNull)` `[Context](https://developer.android.com/reference/android/content/Context.html) | [getContext](/reference/androidx/appfunctions/AppFunctionContext#getContext())`()` The Android context. |\n\nPublic methods\n--------------\n\n### getContext\n\nAdded in [1.0.0-alpha03](/jetpack/androidx/releases/appfunctions#1.0.0-alpha03) \n\n```\nabstract @NonNull Context getContext()\n```\n\nThe Android context."]]