snakia.platform.android

Functions

cast(typ, val)

Cast a value to a type.

create_string_buffer(...)

overload(func)

Decorator for overloaded functions/methods.

Classes

AndroidLayer(platform)

Array

XXX to be provided

CDLL(name[, mode, handle, use_errno, ...])

An instance of this class represents a loaded dll/shared library, exporting functions using the standard C calling convention (named 'cdecl' on Windows).

PlatformLayer(platform)

PlatformOS(value)

An enumeration.

TypeVar(name, *constraints[, bound, ...])

Type variable.

c_char

c_char_p

class snakia.platform.android.AndroidLayer(platform)[source]

Bases: PlatformLayer[Literal[ANDROID]]

PROP_VALUE_MAX: Final = 92
__init__(platform)
api_level(default)[source]
Return type:

int

device(default='')[source]
Return type:

str

get_prop(name, default=None)[source]
Return type:

Any

is_emulator(default)[source]
Return type:

bool

manufacturer(default='')[source]
Return type:

str

model(default='')[source]
Return type:

str

release(default='')[source]
Return type:

str

system_property_get(name, default)[source]
Return type:

int

target: ClassVar[PlatformOS] = 1
classmethod try_get(platform, /)
Return type:

Optional[Self]