pub struct PersistentPreferredActivity {
pub actions: Option<Vec<String>>,
pub categories: Option<Vec<String>>,
pub receiver_activity: Option<String>,
}
Expand description
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§
Source§impl Clone for PersistentPreferredActivity
impl Clone for PersistentPreferredActivity
Source§fn clone(&self) -> PersistentPreferredActivity
fn clone(&self) -> PersistentPreferredActivity
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for PersistentPreferredActivity
impl Debug for PersistentPreferredActivity
Source§impl Default for PersistentPreferredActivity
impl Default for PersistentPreferredActivity
Source§fn default() -> PersistentPreferredActivity
fn default() -> PersistentPreferredActivity
Source§impl<'de> Deserialize<'de> for PersistentPreferredActivity
impl<'de> Deserialize<'de> for PersistentPreferredActivity
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
impl Part for PersistentPreferredActivity
Auto Trait Implementations§
impl Freeze for PersistentPreferredActivity
impl RefUnwindSafe for PersistentPreferredActivity
impl Send for PersistentPreferredActivity
impl Sync for PersistentPreferredActivity
impl Unpin for PersistentPreferredActivity
impl UnwindSafe for PersistentPreferredActivity
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more