Struct android_manifest::Queries [−][src]
pub struct Queries { pub package: Option<Package>, pub intent: Option<Intent>, pub provider: Vec<QueriesProvider>, }
Expand description
Specifies the set of other apps that an app intends to interact with.
These other apps can be specified by package name, by intent signature, or by provider authority, as described in later sections on this page.
Node
Some packages are visible automatically
. Your app can always see these packages in
its queries for other installed apps. To view other packages, declare your app’s need
for increased package visibility using the
Learn more about how to use the package visibility filtering
.
XML Syntax
<queries>
<package android:name="string" />
<intent>
...
</intent>
<provider android:authorities="list" />
</queries>
Contained in
Introduced in
API Level 30
Fields
package: Option<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.
intent: Option<Intent>
Specifies an [intent filter signature
]. Your app can discover other apps that
have matching [<intent-filter>
] elements.
provider: Vec<QueriesProvider>
Specifies one or more content provider authorities
. Your app can discover
other apps whose content providers use the specified authorities.
Note
There are some restrictions on the options that you can include in this
<provider>
element, compared to a typical <provider>
manifest element.
Usually, you only specify the android:authorities
attribute.
Trait Implementations
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]Deserialize this value from the given Serde deserializer. Read more
fn serialize_attributes(
&self,
source_attributes: Vec<OwnedAttribute>,
source_namespace: Namespace
) -> Result<(Vec<OwnedAttribute>, Namespace), String>
[src]Auto Trait Implementations
impl RefUnwindSafe for Queries
impl UnwindSafe for Queries
Blanket Implementations
Mutably borrows from an owned value. Read more