pub struct ActionBuilder(/* private fields */);Expand description
Builder for an Action, created with Action::builder.
Implementations§
Source§impl ActionBuilder
impl ActionBuilder
Sourcepub fn requires_authentication(self, requires_authentication: bool) -> Self
pub fn requires_authentication(self, requires_authentication: bool) -> Self
Sets whether the device must be unlocked for the action to run.
Only used on iOS.
Sourcepub fn foreground(self, foreground: bool) -> Self
pub fn foreground(self, foreground: bool) -> Self
Sets whether the app is brought to the foreground when the action is triggered.
Only used on iOS.
Sourcepub fn destructive(self, destructive: bool) -> Self
pub fn destructive(self, destructive: bool) -> Self
Sets whether the action is displayed as destructive, usually in red.
Only used on iOS.
Sourcepub fn input(self, input: bool) -> Self
pub fn input(self, input: bool) -> Self
Sets whether triggering the action lets the user type a text response.
Sets the text displayed on the button that submits the text input.
Only used on iOS.
Sourcepub fn input_placeholder(self, input_placeholder: impl Into<String>) -> Self
pub fn input_placeholder(self, input_placeholder: impl Into<String>) -> Self
Sets the placeholder displayed on the empty text input field.
Only used on iOS.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ActionBuilder
impl RefUnwindSafe for ActionBuilder
impl Send for ActionBuilder
impl Sync for ActionBuilder
impl Unpin for ActionBuilder
impl UnsafeUnpin for ActionBuilder
impl UnwindSafe for ActionBuilder
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
Mutably borrows from an owned value. Read more