Crate android_manifest

Source

Modules§

error

Structs§

Action
Adds an action to an intent filter.
Activity
Declares an activity (an Activity subclass) that implements part of the application’s visual user interface.
ActivityAlias
An alias for an activity, named by the targetActivity attribute.
AndroidManifest
The root element of the AndroidManifest.xml file.
Application
The declaration of the application.
AttributeList
Category
Adds a category name to an intent filter.
CompatibleScreens
Specifies each screen configuration with which the application is compatible.
Data
Adds a data specification to an intent filter.
DrawableResource
Drawable resource type.
GrantUriPermission
Specifies the subsets of app data that parent content provider can access.
Instrumentation
Declares an Instrumentation class that enables you to monitor an application’s interaction with the system.
Intent
Specifies an intent filter signature. Your app can discover other apps that have matching <intent-filter> elements.
IntentFilter
Specifies the types of intents that an activity, service, or broadcast receiver can respond to.
Layout
Affect how an activity behaves in multi-window mode.
MetaData
A name-value pair for an item of additional, arbitrary data that can be supplied to the parent component.
MipmapResource
Mipmap resource type.
Package
Specifies a single app that your app intends to access. This other app might integrate with your app, or your app might use services that the other app provides.
PathPermission
Defines the path and required permissions for a specific subset of data within a content provider.
Permission
Declares a security permission.
PermissionGroup
Declares a name for a logical grouping of related permissions.
PermissionTree
Declares the base name for a tree of permissions.
Profileable
Specifies how profilers can access this application.
Provider
Declares a content provider component.
Queries
Specifies the set of other apps that an app intends to interact with.
QueriesProvider
Declares a content provider component used in <queries>.
Receiver
Declares a broadcast receiver (a BroadcastReceiver subclass) as one of the application’s components.
Resource
Generic resource type.
Screen
Specifies a single screen configuration with which the application is compatible.
Semicolon
Service
Declares a service (a Service subclass) as one of the application’s components.
StringResource
String resource type.
StyleResource
Style resource type.
SupportsGlTexture
Declares a single GL texture compression format that the app supports.
SupportsScreens
Lets you specify the screen sizes your application supports and enable screen compatibility mode for screens larger than what your application supports.
UsesConfiguration
Indicates what hardware and software features the application requires.
UsesFeature
Declares a single hardware or software feature that is used by the application.
UsesLibrary
Specifies a shared library that the application must be linked against.
UsesNativeLibrary
Specifies a vendor-provided shared native library that the application must be linked against.
UsesPermission
Specifies a system permission that the user must grant in order for the app to operate correctly.
UsesPermissionSdk23
Specifies that an app wants a particular permission.
UsesSdk
Lets you express an application’s compatibility with one or more versions of the Android platform, by means of an API Level integer.
VerticalBar
XmlResource
Xml resource type.

Enums§

AnyResource
Enum used when the value can be any of available resources.
ColorMode
Requests the activity to be displayed in wide color gamut mode on compatible devices.
ConfigChanges
Lists configuration changes that the activity will handle itself.
DocumentLaunchMode
Four values which produce the following effects when the user opens a document with the application
ForegroundServiceType
Gravity
Standard constants and tools for placing an object within a potentially larger container.
GwpAsanMode
GWP-ASan is a native memory allocator feature that helps find use-after-free and heap-buffer-overflow bugs.
InstallLocation
The default install location for the app.
LaunchMode
An instruction on how the activity should be launched.
LockTaskMode
This value indicates how tasks rooted at this activity will behave in lockTask mode. The value can be any one of the following R.attr.lockTaskMode string values:
MipmapOrDrawableResource
Enum used when the value can be string resource or just a row string.
PersistableMode
Defines how an instance of an activity is preserved within a containing task across device restarts.
ProtectionLevel
The following table shows all base permission types. For a list of flags, see protectionLevel.
ReqKeyboardType
The type of keyboard the application requires, if any at all.
ReqNavigation
The navigation device required by the application, if any.
ReqTouchScreen
The type of touch screen the application requires, if any at all.
ScreenOrientation
The orientation of the activity’s display on the device.
ScreenSize
Android runs on a variety of devices that have different screen sizes and pixel densities. The system performs basic scaling and resizing to adapt your user interface to different screens.
StringResourceOrString
Enum used when the value can be string resource or just a row string.
SupportsGlTextureName
UiOptions
Extra options for an activity’s UI.
VarOrBool
Enum used when the value can be string resource or just a row string.
WindowSoftInputMode
How the main window of the activity interacts with the window containing the on-screen soft keyboard.

Traits§

Delimiter
ResourceType
Trait implemented by types that can be used as resource.

Functions§

from_reader
Deserialize an instance of type AndroidManifest from an IO stream of XML text.
from_str
Deserialize an instance of type AndroidManifest from a string of XML text.
to_string
Serialize the given AndroidManifest structure as a String of XML text.
to_string_pretty
Serialize the given AndroidManifest structure as a pretty-printed String of XML text.