---
title: UnityEngine.AndroidJNIModule
product: Unity Editor
version: '7000.0'
latest_version: '7000.0'
status: This page documents version 7000.0. The latest version is 7000.0.
canonical: https://docs.unity.com/en-us/engine/7000.0/script-reference/modules/unityengine-androidjnimodule
latest_url: https://docs.unity.com/en-us/engine/7000.0/script-reference/modules/unityengine-androidjnimodule.md
last_updated: 2026-11-30
generated_at: 2026-11-30T20:48:58.469Z
locale: en-us
---

# UnityEngine.AndroidJNIModule

> AndroidJNI module allows you to call Java code.

## Definition

* **Type:** Module

## Remarks

Additional resources: [Best practices for calling Java/Kotlin code](/engine/7000.0/manual/platform-specific/android/developing/plugins-for/plugins-java-code-from-c-sharp/call-java-kotlin-code-best-practices.md)

## Classes

| Class                                                                                                                                           | Description                                                                                                                                                                                                                                           |
| ----------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| [AndroidApplication](/engine/7000.0/script-reference/unityengine/android/androidapplication.md)                                                 | Use this class to access the runtime data of your Android application.                                                                                                                                                                                |
| [AndroidAssetPackConfirmationDialogResult](/engine/7000.0/script-reference/unityengine/android/androidassetpackconfirmationdialogresult.md)     | Represents the user's response indicating whether the user gave consent to download asset packs that require explicit permission.                                                                                                                     |
| [AndroidAssetPackInfo](/engine/7000.0/script-reference/unityengine/android/androidassetpackinfo.md)                                             | Represents the download progress of a single Android asset pack.                                                                                                                                                                                      |
| [AndroidAssetPacks](/engine/7000.0/script-reference/unityengine/android/androidassetpacks.md)                                                   | Provides methods for handling Android asset packs.                                                                                                                                                                                                    |
| [AndroidAssetPackState](/engine/7000.0/script-reference/unityengine/android/androidassetpackstate.md)                                           | Represents the state of a single Android asset pack.                                                                                                                                                                                                  |
| [AndroidAssetPackUseMobileDataRequestResult](/engine/7000.0/script-reference/unityengine/android/androidassetpackusemobiledatarequestresult.md) | Represents the choice of an end user that indicates if your application can use mobile data to download Android asset packs.                                                                                                                          |
| [AndroidBuild](/engine/7000.0/script-reference/unityengine/android/androidbuild.md)                                                             | Provides access to Android build and platform information.                                                                                                                                                                                            |
| [AndroidConfiguration](/engine/7000.0/script-reference/unityengine/android/androidconfiguration.md)                                             | Use this class to retrieve device specific configuration information.                                                                                                                                                                                 |
| [AndroidDevice](/engine/7000.0/script-reference/unityengine/android/androiddevice.md)                                                           | Interface into Android specific functionality.                                                                                                                                                                                                        |
| [AndroidFoldingFeature](/engine/7000.0/script-reference/unityengine/android/androidfoldingfeature.md)                                           | Provides information about a fold in a flexible display or a hinge between separate physical displays.                                                                                                                                                |
| [AndroidGame](/engine/7000.0/script-reference/unityengine/android/androidgame.md)                                                               | Provides methods and properties for accessing different Android game APIs.                                                                                                                                                                            |
| [AndroidJavaClass](/engine/7000.0/script-reference/unityengine/androidjavaclass.md)                                                             | AndroidJavaClass is the Unity representation of a generic instance of java.lang.Class.                                                                                                                                                                |
| [AndroidJavaObject](/engine/7000.0/script-reference/unityengine/androidjavaobject.md)                                                           | AndroidJavaObject is the Unity representation of a generic instance of java.lang.Object.                                                                                                                                                              |
| [AndroidJavaProxy](/engine/7000.0/script-reference/unityengine/androidjavaproxy.md)                                                             | This class can be used to implement any java interface. Any java vm method invocation matching the interface on the proxy object will automatically be passed to the c# implementation.                                                               |
| [AndroidJNI](/engine/7000.0/script-reference/unityengine/androidjni.md)                                                                         | 'Raw' JNI interface to Android Java VM from Unity scripting (C#).                                                                                                                                                                                     |
| [AndroidJNIHelper](/engine/7000.0/script-reference/unityengine/androidjnihelper.md)                                                             | Helper interface for JNI interaction; signature creation and method lookups.                                                                                                                                                                          |
| [AndroidLocale](/engine/7000.0/script-reference/unityengine/android/androidlocale.md)                                                           | Use this class to retrieve the language and region preferences set on the device.                                                                                                                                                                     |
| [AndroidWindowInsets](/engine/7000.0/script-reference/unityengine/android/androidwindowinsets.md)                                               | Provides control over the windows that generate insets.                                                                                                                                                                                               |
| [ApplicationExitInfoProvider](/engine/7000.0/script-reference/unityengine/android/applicationexitinfoprovider.md)                               | Access point to get the list of [ApplicationExitInfo](/engine/7000.0/script-reference/unityengine/android/iapplicationexitinfo.md) records with the reasons for the most recent application terminations.                                             |
| [ApplicationStartInfoProvider](/engine/7000.0/script-reference/unityengine/android/applicationstartinfoprovider.md)                             | Provides access to Android's `ApplicationStartInfo` API.                                                                                                                                                                                              |
| [ConfirmationDialogAsyncOperation](/engine/7000.0/script-reference/unityengine/android/confirmationdialogasyncoperation.md)                     | Represents an asynchronous operation that requests the user for consent to download Android asset packs.                                                                                                                                              |
| [DiagnosticsReporting](/engine/7000.0/script-reference/unityengine/android/diagnosticsreporting.md)                                             | Class with options for reporting diagnostics information to the Android system.                                                                                                                                                                       |
| [DownloadAssetPackAsyncOperation](/engine/7000.0/script-reference/unityengine/android/downloadassetpackasyncoperation.md)                       | Represents an asynchronous Android asset pack download operation. [AndroidAssetPacks.DownloadAssetPackAsync](/engine/7000.0/script-reference/unityengine/android/androidassetpacks/downloadassetpackasync.md) returns an instance of this class.      |
| [GetAssetPackStateAsyncOperation](/engine/7000.0/script-reference/unityengine/android/getassetpackstateasyncoperation.md)                       | Represents an asynchronous Android asset pack state request operation. [AndroidAssetPacks.GetAssetPackStateAsync](/engine/7000.0/script-reference/unityengine/android/androidassetpacks/getassetpackstateasync.md) returns an instance of this class. |
| [PermissionCallbacks](/engine/7000.0/script-reference/unityengine/android/permissioncallbacks.md)                                               | Contains callbacks invoked when permission request is executed using [Permission.RequestUserPermission](/engine/7000.0/script-reference/unityengine/android/permission/requestuserpermission.md).                                                     |
| [RequestToUseMobileDataAsyncOperation](/engine/7000.0/script-reference/unityengine/android/requesttousemobiledataasyncoperation.md)             | Represents an asynchronous operation that requests to use mobile data to download Android asset packs.                                                                                                                                                |

## Structs

| Struct                                                                            | Description                                                                                                                                                          |
| --------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| [JNINativeMethod](/engine/7000.0/script-reference/unityengine/jninativemethod.md) | Defines a single method to register with a Java class using [AndroidJNI.RegisterNatives](/engine/7000.0/script-reference/unityengine/androidjni/registernatives.md). |
| [Permission](/engine/7000.0/script-reference/unityengine/android/permission.md)   | Structure describing a permission that requires user authorization.                                                                                                  |

## Enums

| Enum                                                                                                                    | Description                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         |
| ----------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| [AndroidAssetPackError](/engine/7000.0/script-reference/unityengine/android/androidassetpackerror.md)                   | Values that indicate the type of Android asset pack error when the status is either AndroidAssetPackStatus.Failed or AndroidAssetPackStatus.Unknown.                                                                                                                                                                                                                                                                                                                                                                                                                                                |
| [AndroidAssetPackStatus](/engine/7000.0/script-reference/unityengine/android/androidassetpackstatus.md)                 | Values that indicate the status of an Android asset pack.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           |
| [AndroidColorModeHdr](/engine/7000.0/script-reference/unityengine/android/androidcolormodehdr.md)                       | Options to indicate whether the screen can display a wide range brightness levels.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  |
| [AndroidColorModeWideColorGamut](/engine/7000.0/script-reference/unityengine/android/androidcolormodewidecolorgamut.md) | Options to indicate whether the screen can display wide range of color gamut or not.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                |
| [AndroidFoldableOcclusionType](/engine/7000.0/script-reference/unityengine/android/androidfoldableocclusiontype.md)     | Options to represent the hinge occlusion behavior.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  |
| [AndroidFoldableOrientation](/engine/7000.0/script-reference/unityengine/android/androidfoldableorientation.md)         | Options to indicate the orientation of a fold or hinge.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             |
| [AndroidFoldableState](/engine/7000.0/script-reference/unityengine/android/androidfoldablestate.md)                     | Options to indicate the state of a fold or hinge.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   |
| [AndroidGameMode](/engine/7000.0/script-reference/unityengine/android/androidgamemode.md)                               | Options for the available [game modes](https://developer.android.com/reference/android/app/GameManager#constants_1) that [AndroidGame.GameMode](/engine/7000.0/script-reference/unityengine/android/androidgame/gamemode.md) can return.                                                                                                                                                                                                                                                                                                                                                            |
| [AndroidGameState](/engine/7000.0/script-reference/unityengine/android/androidgamestate.md)                             | Options for the available [game states](https://developer.android.com/reference/android/app/GameState#constants_1) that you can pass to [AndroidGame.SetGameState](/engine/7000.0/script-reference/unityengine/android/androidgame/setgamestate.md) or you can set as a current game state mode to be used for [Automated game state hinting in Unity](/engine/7000.0/manual/platform-specific/android/developing/optimization/game-state-hinting.md) using [AndroidGame.Automatic.SetGameState](/engine/7000.0/script-reference/unityengine/android/androidgame/automatic/setgamestate.md) method. |
| [AndroidHardwareKeyboardHidden](/engine/7000.0/script-reference/unityengine/android/androidhardwarekeyboardhidden.md)   | Options to indicate whether the physical keyboard is available.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     |
| [AndroidHardwareType](/engine/7000.0/script-reference/unityengine/android/androidhardwaretype.md)                       | AndroidHardwareType describes the type of Android device on which the app is running.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               |
| [AndroidKeyboard](/engine/7000.0/script-reference/unityengine/android/androidkeyboard.md)                               | Options to indicate the type of keyboard the device is using.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       |
| [AndroidKeyboardHidden](/engine/7000.0/script-reference/unityengine/android/androidkeyboardhidden.md)                   | Options to indicate whether any keyboard is available for use on the device.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        |
| [AndroidNavigation](/engine/7000.0/script-reference/unityengine/android/androidnavigation.md)                           | Options to indicate the type of navigation methods used on the device.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              |
| [AndroidNavigationHidden](/engine/7000.0/script-reference/unityengine/android/androidnavigationhidden.md)               | Options to indicate whether the 5-way or DPAD navigation methods are available on the device.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       |
| [AndroidOrientation](/engine/7000.0/script-reference/unityengine/android/androidorientation.md)                         | Options to indicate the orientation of the screen.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  |
| [AndroidScreenLayoutDirection](/engine/7000.0/script-reference/unityengine/android/androidscreenlayoutdirection.md)     | Options to indicate the screen layout direction.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    |
| [AndroidScreenLayoutLong](/engine/7000.0/script-reference/unityengine/android/androidscreenlayoutlong.md)               | Options to indicate whether the aspect ratio of the screen is taller or wider than normal.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          |
| [AndroidScreenLayoutRound](/engine/7000.0/script-reference/unityengine/android/androidscreenlayoutround.md)             | Options to indicate whether the screen shape is rounded or not.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     |
| [AndroidScreenLayoutSize](/engine/7000.0/script-reference/unityengine/android/androidscreenlayoutsize.md)               | Options to indicate the size of the device screen.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  |
| [AndroidTouchScreen](/engine/7000.0/script-reference/unityengine/android/androidtouchscreen.md)                         | Options to indicate whether the device supports touchscreen.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        |
| [AndroidUIModeNight](/engine/7000.0/script-reference/unityengine/android/androiduimodenight.md)                         | Options to indicate whether the device screen is in a special mode, such as a night mode.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           |
| [AndroidUIModeType](/engine/7000.0/script-reference/unityengine/android/androiduimodetype.md)                           | Options to indicate the user interface mode of the device.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          |
| [ExitReason](/engine/7000.0/script-reference/unityengine/android/exitreason.md)                                         | The reason code for termination of the process.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     |
| [LaunchMode](/engine/7000.0/script-reference/unityengine/android/launchmode.md)                                         | Options for the launch mode of an Android activity.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 |
| [ProcessImportance](/engine/7000.0/script-reference/unityengine/android/processimportance.md)                           | Indicates the relative importance level that the system assigns to the process. These levels are represented by constants. The constants are numbered in such a way that more important values are always smaller than the less important values.                                                                                                                                                                                                                                                                                                                                                   |
| [StartComponent](/engine/7000.0/script-reference/unityengine/android/startcomponent.md)                                 | Options for the component type that started the app.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                |
| [StartReason](/engine/7000.0/script-reference/unityengine/android/startreason.md)                                       | Reason codes for an Android app process start.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      |
| [StartTimestamp](/engine/7000.0/script-reference/unityengine/android/starttimestamp.md)                                 | Timestamp types for `ApplicationStartInfo` startup data.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            |
| [StartType](/engine/7000.0/script-reference/unityengine/android/starttype.md)                                           | Options for the start type of an Android app.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       |
| [StartupState](/engine/7000.0/script-reference/unityengine/android/startupstate.md)                                     | Options for the startup state of an Android app process.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            |

## Interfaces

| Interface                                                                                             | Description                                         |
| ----------------------------------------------------------------------------------------------------- | --------------------------------------------------- |
| [IApplicationExitInfo](/engine/7000.0/script-reference/unityengine/android/iapplicationexitinfo.md)   | Mirrors `android:android.app.ApplicationExitInfo`.  |
| [IApplicationStartInfo](/engine/7000.0/script-reference/unityengine/android/iapplicationstartinfo.md) | Mirrors `android:android.app.ApplicationStartInfo`. |

## Delegates

| Delegate                                                                                  | Description                                                                     |
| ----------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------- |
| [AndroidJavaRunnable](/engine/7000.0/script-reference/unityengine/androidjavarunnable.md) | AndroidJavaRunnable is the Unity representation of a java.lang.Runnable object. |
