pub struct SCContentSharingPickerConfiguration { /* private fields */ }Expand description
Configuration for the content sharing picker
Implementations§
Source§impl SCContentSharingPickerConfiguration
impl SCContentSharingPickerConfiguration
pub fn new() -> Self
Sourcepub fn set_allowed_picker_modes(&mut self, modes: &[SCContentSharingPickerMode])
pub fn set_allowed_picker_modes(&mut self, modes: &[SCContentSharingPickerMode])
Set allowed picker modes
Sourcepub fn set_allows_changing_selected_content(&mut self, allows: bool)
pub fn set_allows_changing_selected_content(&mut self, allows: bool)
Set whether the user can change the selected content while sharing
When true, the user can modify their selection during an active session.
Sourcepub fn allows_changing_selected_content(&self) -> bool
pub fn allows_changing_selected_content(&self) -> bool
Get whether changing selected content is allowed
Sourcepub fn set_excluded_bundle_ids(&mut self, bundle_ids: &[&str])
pub fn set_excluded_bundle_ids(&mut self, bundle_ids: &[&str])
Set bundle identifiers to exclude from the picker
Applications with these bundle IDs will not appear in the picker.
Sourcepub fn excluded_bundle_ids(&self) -> Vec<String>
pub fn excluded_bundle_ids(&self) -> Vec<String>
Get the list of excluded bundle identifiers
Sourcepub fn set_excluded_window_ids(&mut self, window_ids: &[u32])
pub fn set_excluded_window_ids(&mut self, window_ids: &[u32])
Set window IDs to exclude from the picker
Windows with these IDs will not appear in the picker.
Sourcepub fn excluded_window_ids(&self) -> Vec<u32>
pub fn excluded_window_ids(&self) -> Vec<u32>
Get the list of excluded window IDs
pub const fn as_ptr(&self) -> *const c_void
Trait Implementations§
impl Send for SCContentSharingPickerConfiguration
impl Sync for SCContentSharingPickerConfiguration
Auto Trait Implementations§
impl Freeze for SCContentSharingPickerConfiguration
impl RefUnwindSafe for SCContentSharingPickerConfiguration
impl Unpin for SCContentSharingPickerConfiguration
impl UnwindSafe for SCContentSharingPickerConfiguration
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