[][src]Struct creator_tools::types::ExtensionAttributes

pub struct ExtensionAttributes {
    pub allows_finder_preview_item: Option<bool>,
    pub allows_toolbar_item: Option<bool>,
    pub allows_touch_bar_item: Option<bool>,
    pub finder_preview_icon_name: Option<String>,
    pub finder_preview_label: Option<String>,
    pub role_type: Option<ExtensionServiceRoleType>,
    pub toolbar_icon_file: Option<String>,
    pub toolbar_palette_label: Option<String>,
    pub touch_bar_bezel_color_name: Option<String>,
    pub touch_bar_icon_name: Option<String>,
    pub touch_bar_label: Option<String>,
    pub action_wants_full_screen_presentation: Option<bool>,
    pub main_storyboard: Option<bool>,
    pub overrides_host_ui_appearance: Option<bool>,
    pub point_identifier: Option<ExtensionPointIdentifier>,
    pub principal_class: Option<String>,
    pub activation_rule: Option<ActivationRule>,
    pub java_script_preprocessing_file: Option<String>,
    pub intents_supported: Option<Vec<String>>,
    pub supported_media_categories: Option<Vec<MediaCategories>>,
    pub project_extension_defines_project_types: Option<bool>,
    pub supported_media_types: Option<Vec<MediaTypes>>,
    pub id_message_filter_extension_network_url: Option<String>,
    pub classification_extension_sms_report_destination: Option<String>,
    pub is_ascii_capable: Option<String>,
    pub messages_app_presentation_context_messages: Option<Vec<ContextMessages>>,
    pub file_provider_actions: Option<Vec<FileProviderAction>>,
    pub file_provider_document_group: Option<String>,
    pub file_provider_supports_enumeration: Option<bool>,
    pub prefers_right_to_left: Option<bool>,
    pub primary_language: Option<String>,
    pub requests_open_access: Option<bool>,
    pub document_picker_modes: Option<Vec<DocumentPickerModes>>,
    pub document_picker_supported_file_types: Option<Vec<String>>,
    pub notification_extension_category: Option<String>,
    pub notification_extension_default_content_hidden: Option<bool>,
    pub notification_extension_initial_content_size_ratio: Option<f32>,
    pub notification_extension_overrides_default_title: Option<bool>,
    pub notification_extension_user_interaction_enabled: Option<bool>,
}

Extension Attributes.

Fields

allows_finder_preview_item: Option<bool>

A Boolean value indicating whether the extension appears in the Finder Preview pane and Quick Actions menu.

allows_toolbar_item: Option<bool>

A Boolean value indicating whether an Action extension displays an item in a window’s toolbar.

allows_touch_bar_item: Option<bool>

A Boolean value indicating whether the extension appears as a Quick Action in the Touch Bar.

finder_preview_icon_name: Option<String>

The name of an icon for display when the extension appears in the Finder Preview pane and Quick Actions menu.

This key is used in conjunction with the NSExtensionServiceAllowsFinderPreviewItem key.

Set the NSExtensionServiceFinderPreviewIconName key's value to a system icon name or the name of an icon in the extension bundle. This icon should be a template image: a monochromatic image with transparency, anti-aliasing, and no drop shadow that uses a mask to define its shape. For design guidance, see Human Interface Guidelines > macOS > Custom Icons. If no icon is specified, a default icon is used.

finder_preview_label: Option<String>

A name for display when the extension appears in the Finder Preview pane and Quick Actions menu.

This key is used in conjunction with the NSExtensionServiceAllowsFinderPreviewItem key.

If the NSExtensionServiceFinderPreviewLabel key isn't provided, the extension's display name is used.

role_type: Option<ExtensionServiceRoleType>

The type of task an Action extension performs.

toolbar_icon_file: Option<String>

The image for an Action extension’s toolbar item.

toolbar_palette_label: Option<String>

The label for an Action extension's toolbar item.

touch_bar_bezel_color_name: Option<String>

The color to use for the bezel around the extension when it appears as a Quick Action in the Touch Bar.

This key is used in conjunction with the NSExtensionServiceAllowsTouchBarItem key.

Set the NSExtensionServiceTouchBarBezelColorName key's value to the name of a color that exists in your extension's asset catalog—a color that matches a system color is recommended. If no color is specified, a default color is used.

touch_bar_icon_name: Option<String>

The name of an icon for display when the extension appears as a Quick Action in the Touch Bar.

This key is used in conjunction with the NSExtensionServiceAllowsTouchBarItem key.

Set the NSExtensionServiceTouchBarIconName key's value to a system icon name or the name of an icon within the extension bundle. This icon should be a template image: a monochromatic image with transparency, anti-aliasing, and no drop shadow that uses a mask to define its shape. For design guidance, see Human Interface Guidelines > macOS > Custom Icons. If no icon is specified, a default icon is used.

touch_bar_label: Option<String>

A name for display when the extension appears as a Quick Action in the Touch Bar.

This key is used in conjunction with the NSExtensionServiceAllowsTouchBarItem key.

If the NSExtensionServiceTouchBarLabel key isn't provided, the extension's display name is used.

action_wants_full_screen_presentation: Option<bool>

A Boolean value indicating whether the Action extension is presented in full screen.

main_storyboard: Option<bool>

This key is mutually exclusive with NSExtensionPrincipalClass. If the app extension’s Info.plist file contains both keys, the system won’t load the extension.

overrides_host_ui_appearance: Option<bool>

A Boolean value indicating whether the app extension ignores appearance changes made by the host app.

point_identifier: Option<ExtensionPointIdentifier>

The extension point that supports an app extension.

principal_class: Option<String>

This key is mutually exclusive with NSExtensionMainStoryboard. If the app extension’s Info.plist file contains both keys, the system won’t load the extension.

activation_rule: Option<ActivationRule>

The semantic data types that a Share or Action extension supports.

java_script_preprocessing_file: Option<String>

The name of a JavaScript file supplied by a Share or Action extension.

intents_supported: Option<Vec<String>>

The names of the intents that an extension supports.

supported_media_categories: Option<Vec<MediaCategories>>

Types of media supported by an app extension’s media-playing intents.

Specify one or more media categories to allow Siri to invoke your app’s intent handling when a user asks to play media. Use INMediaCategoryGeneral for media that doesn’t fit into any of the other categories, like white noise or sound effects.

To specify this information in Xcode, add INPlayMediaIntent to your extension’s list of Supported Intents. Then select the relevant media types in the list that appears.

project_extension_defines_project_types: Option<bool>supported_media_types: Option<Vec<MediaTypes>>

The types of assets a Photo Editing extension can edit.

id_message_filter_extension_network_url: Option<String>

The server that a Message Filter app extension may defer a query to.

classification_extension_sms_report_destination: Option<String>

The phone number that receives SMS messages when the user reports an SMS message or a call.

is_ascii_capable: Option<String>

A Boolean value indicating whether a custom keyboard displays standard ASCII characters.

messages_app_presentation_context_messages: Option<Vec<ContextMessages>>

The contexts that an iMessage app or sticker pack supports.

file_provider_actions: Option<Vec<FileProviderAction>>

The custom actions for a File Provider extension.

file_provider_document_group: Option<String>

The identifier of a shared container that can be accessed by a Document Picker extension and its associated File Provider extension.

file_provider_supports_enumeration: Option<bool>

A Boolean value indicating whether a File Provider extension enumerates its content.

prefers_right_to_left: Option<bool>

A Boolean value indicating whether a keyboard extension supports right-to-left languages.

primary_language: Option<String>

The primary language for a keyboard extension.

requests_open_access: Option<bool>

A Boolean value indicating whether a custom keyboard uses a shared container and accesses the network.

document_picker_modes: Option<Vec<DocumentPickerModes>>

The modes that a Document Picker extension supports.

document_picker_supported_file_types: Option<Vec<String>>

The Uniform Type Identifiers that a document picker extension supports.

notification_extension_category: Option<String>

The identifier of a category declared by the app extension.

notification_extension_default_content_hidden: Option<bool>

A Boolean value indicating whether only the app extension's custom view controller is displayed in the notification interface.

notification_extension_initial_content_size_ratio: Option<f32>

The initial size of the view controller's view for an app extension, expressed as a ratio of its height to its width.

notification_extension_overrides_default_title: Option<bool>

A Boolean value indicating whether the title of the app extension's view controller is used as the title of the notification.

notification_extension_user_interaction_enabled: Option<bool>

A Boolean value indicating whether user interactions in a custom notification are enabled.

Trait Implementations

impl Clone for ExtensionAttributes[src]

impl Debug for ExtensionAttributes[src]

impl Default for ExtensionAttributes[src]

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

impl PartialEq<ExtensionAttributes> for ExtensionAttributes[src]

impl Serialize for ExtensionAttributes[src]

impl StructuralPartialEq for ExtensionAttributes[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, 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.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,