pub struct ExtensionAttributes {Show 39 fields
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<String>,
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>,
}Expand description
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.
§Availability
- macOS 10.14+
§Framework
- AppKit
allows_toolbar_item: Option<bool>A Boolean value indicating whether an Action extension displays an item in a window’s toolbar.
§Availability
- macOS 10.10+
§Framework
- AppKit
allows_touch_bar_item: Option<bool>A Boolean value indicating whether the extension appears as a Quick Action in the Touch Bar.
§Availability
- macOS 10.14+
§Framework
- AppKit
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.
§Availability
- macOS 10.14+
§Framework
- AppKit
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.
§Availability
- macOS 10.14+
§Framework
- AppKit
role_type: Option<ExtensionServiceRoleType>§toolbar_icon_file: Option<String>§toolbar_palette_label: Option<String>§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.
§Availability
- macOS 10.14+
§Framework
- AppKit
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.
§Availability
- macOS 10.14+
§Framework
- AppKit
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.
§Availability
- macOS 10.14+
§Framework
- AppKit
action_wants_full_screen_presentation: Option<bool>A Boolean value indicating whether the Action extension is presented in full screen.
§Availability
- iOS 8.0+
§Framework
- Foundation
main_storyboard: Option<String>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.
§Availability
- iOS 8.0+
- macOS 10.10+
§Framework
- Foundation
overrides_host_ui_appearance: Option<bool>A Boolean value indicating whether the app extension ignores appearance changes made by the host app.
§Availability
- iOS 10.0+
§Framework
- Foundation
point_identifier: Option<ExtensionPointIdentifier>The extension point that supports an app extension.
§Availability
- iOS 8.0+
- macOS 10.10+
§Framework
- Foundation
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.
§Availability
- iOS 8.0+
- macOS 10.10+
§Framework
- Foundation
activation_rule: Option<ActivationRule>The semantic data types that a Share or Action extension supports.
§Availability
- iOS 8.0+
- macOS 10.10+
§Framework
- Foundation
java_script_preprocessing_file: Option<String>The name of a JavaScript file supplied by a Share or Action extension.
§Availability
- iOS 8.0+
- macOS 10.10+
§Framework
- Foundation
intents_supported: Option<Vec<String>>The names of the intents that an extension supports.
§Availability
- macOS 10.0+
§Framework
- Foundation
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.
§Availability
- iOS 13.0+
§Framework
- Foundation
project_extension_defines_project_types: Option<bool>A Boolean value indicating whether the Photos app gets a list of supported project types from an extension.
§Availability
- macOS 10.14+
§Framework
- Photos
supported_media_types: Option<Vec<MediaTypes>>§id_message_filter_extension_network_url: Option<String>The server that a Message Filter app extension may defer a query to.
§Availability
- iOS 11.0+
§Framework
- UIKit
classification_extension_sms_report_destination: Option<String>The phone number that receives SMS messages when the user reports an SMS message or a call.
§Availability
- iOS 12.0+
§Framework
- UIKit
is_ascii_capable: Option<String>A Boolean value indicating whether a custom keyboard displays standard ASCII characters.
§Availability
- iOS 8.0+
§Framework
- UIKit
messages_app_presentation_context_messages: Option<Vec<ContextMessages>>The contexts that an iMessage app or sticker pack supports.
§Availability
- iOS 12.0+
§Framework
- UIKit
file_provider_actions: Option<Vec<FileProviderAction>>§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.
§Availability
- iOS 8.0+
§Framework
- UIKit
file_provider_supports_enumeration: Option<bool>A Boolean value indicating whether a File Provider extension enumerates its content.
§Availability
- iOS 11.0+
§Framework
- UIKit
prefers_right_to_left: Option<bool>A Boolean value indicating whether a keyboard extension supports right-to-left languages.
§Availability
- iOS 8.0+
§Framework
- UIKit
primary_language: Option<String>§requests_open_access: Option<bool>A Boolean value indicating whether a custom keyboard uses a shared container and accesses the network.
§Availability
- iOS 8.0+
§Framework
- UIKit
document_picker_modes: Option<Vec<DocumentPickerModes>>§document_picker_supported_file_types: Option<Vec<String>>The Uniform Type Identifiers that a document picker extension supports.
§Availability
- iOS 8.0+
§Framework
- UIKit
notification_extension_category: Option<String>The identifier of a category declared by the app extension.
§Availability
- iOS 10.0+
§Framework
- UIKit
A Boolean value indicating whether only the app extension’s custom view controller is displayed in the notification interface.
§Availability
- iOS 10.0+
§Framework
- UIKit
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.
§Availability
- iOS 10.0+
§Framework
- UIKit
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.
§Availability
- iOS 10.0+
§Framework
- UIKit
notification_extension_user_interaction_enabled: Option<bool>A Boolean value indicating whether user interactions in a custom notification are enabled.
§Availability
- iOS 12.0+
§Framework
- UIKit
Trait Implementations§
Source§impl Clone for ExtensionAttributes
impl Clone for ExtensionAttributes
Source§fn clone(&self) -> ExtensionAttributes
fn clone(&self) -> ExtensionAttributes
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more