Struct google_androidmanagement1::api::PersistentPreferredActivity[][src]

pub struct PersistentPreferredActivity {
    pub actions: Option<Vec<String>>,
    pub categories: Option<Vec<String>>,
    pub receiver_activity: Option<String>,
}

A default activity for handling intents that match a particular intent filter. Note: To set up a kiosk, use InstallType to KIOSK rather than use persistent preferred activities.

This type is not used in any activity, and only used as part of another schema.

Fields

actions: Option<Vec<String>>

The intent actions to match in the filter. If any actions are included in the filter, then an intent’s action must be one of those values for it to match. If no actions are included, the intent action is ignored.

categories: Option<Vec<String>>

The intent categories to match in the filter. An intent includes the categories that it requires, all of which must be included in the filter in order to match. In other words, adding a category to the filter has no impact on matching unless that category is specified in the intent.

receiver_activity: Option<String>

The activity that should be the default intent handler. This should be an Android component name, e.g. com.android.enterprise.app/.MainActivity. Alternatively, the value may be the package name of an app, which causes Android Device Policy to choose an appropriate activity from the app to handle the intent.

Trait Implementations

impl Clone for PersistentPreferredActivity[src]

impl Debug for PersistentPreferredActivity[src]

impl Default for PersistentPreferredActivity[src]

impl<'de> Deserialize<'de> for PersistentPreferredActivity[src]

impl Part for PersistentPreferredActivity[src]

impl Serialize for PersistentPreferredActivity[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.