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
sourceimpl Clone for PersistentPreferredActivity
impl Clone for PersistentPreferredActivity
sourcefn clone(&self) -> PersistentPreferredActivity
fn clone(&self) -> PersistentPreferredActivity
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
sourceimpl Debug for PersistentPreferredActivity
impl Debug for PersistentPreferredActivity
sourceimpl Default for PersistentPreferredActivity
impl Default for PersistentPreferredActivity
sourcefn default() -> PersistentPreferredActivity
fn default() -> PersistentPreferredActivity
Returns the “default value” for a type. Read more
sourceimpl<'de> Deserialize<'de> for PersistentPreferredActivity
impl<'de> Deserialize<'de> for PersistentPreferredActivity
sourcefn 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>,
Deserialize this value from the given Serde deserializer. Read more
impl Part for PersistentPreferredActivity
Auto Trait Implementations
impl RefUnwindSafe for PersistentPreferredActivity
impl Send for PersistentPreferredActivity
impl Sync for PersistentPreferredActivity
impl Unpin for PersistentPreferredActivity
impl UnwindSafe for PersistentPreferredActivity
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into)Uses borrowed data to replace owned data, usually by cloning. Read more
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber to this type, returning a
WithDispatch wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber to this type, returning a
WithDispatch wrapper. Read more