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 element.

Learn more about how to use the element in the guide on 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

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Deserialize this value from the given Serde deserializer. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.