Registry / other / ndk-context

ndk-context

JSON →
library0.1.1rscratesunverified

Handles for accessing Android APIs from Rust code.

# Cargo.toml [dependencies] ndk-context = "0.1.1"
INSTALL
IMPORT
SIG · NDK-CONTEXT
N
ndk-context
otherrustv0.1.1
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

AndroidContext
use ndk_context::AndroidContext;

Retrieves the Android context

use ndk_context::AndroidContext; let context = AndroidContext::retrieve(); println!("Got Android context: {:?}", context);
Debug
Known issues
gotchaOnly works on Android platform
fix
Guard usage with #[cfg(target_os = "android")]
affects: *
Upgrade
Version history
0.1.1latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
5 hits · last 30 days
node
4
Amazon
1
Resources
ndk-context — cargo add ndk-context · libregistry