Extension

Struct Extension 

Source
pub struct Extension {
Show 19 fields pub intents_supported: Option<Vec<String>>, pub pro_extension_attributes: Option<BTreeMap<String, String>>, pub pro_extension_principal_class: Option<String>, pub pro_extension_principal_view_controller_class: Option<String>, pub pro_extension_uuid: Option<String>, pub password_generation_requirements: Option<String>, pub supports_strong_password_upgrade: Option<bool>, pub supports_upgrade_to_sign_in_with_apple: Option<bool>, pub extension_action_wants_full_screen_presentation: Option<bool>, pub extension_attributes: Option<ExtensionAttributes>, pub extension_main_storyboard: Option<String>, pub extension_overrides_host_ui_appearance: Option<bool>, pub extension_point_identifier: Option<ExtensionPointIdentifier>, pub extension_principal_class: Option<String>, pub safari_content_script: Option<Vec<SafariContentScript>>, pub safari_context_menu: Option<Vec<SafariContextMenu>>, pub safari_style_sheet: Option<Vec<SafariStyleSheet>>, pub safari_toolbar_item: Option<SafariToolbarItem>, pub safari_website_access: Option<SafariWebsiteAccess>,
}
Expand description

Extension

Fields§

§intents_supported: Option<Vec<String>>

The names of the intents that an extension supports.

§Availability

  • iOS 10.0+

§Framework

  • Foundation
§pro_extension_attributes: Option<BTreeMap<String, String>>

A dictionary that specifies the minimum size of the floating window in which Final Cut Pro hosts the extension view.

§Availability

  • ProVideo Workflow Extensions 1.0+

§Framework

  • ProExtension
§pro_extension_principal_class: Option<String>

The name of the class with the principal implementation of your extension.

The Compressor app instantiates the class specified in the ProExtensionPrincipalClass key to convert source files to the output format your extension supports.

§Availability

  • ProVideo Workflow Extensions 1.0+
  • ProVideo Encoder Extensions 1.0+

§Framework

  • ProExtension
§pro_extension_principal_view_controller_class: Option<String>

The name of the principal view controller class of your extension.

This key provides the name of the primary view controller class of your extension that adopts the NSViewController protocol. When you create an extension, the Xcode template automatically includes this key in the workflow extension information property list. You only modify the value of this key when you rename the primary view controller class in your extension.

§Availability

  • ProVideo Workflow Extensions 1.0+
  • ProVideo Encoder Extensions 1.0+

§Framework

  • ProExtension
§pro_extension_uuid: Option<String>

A UUID string that uniquely identifies your extension to the Compressor app.

The value for this key is a placeholder UUID the Xcode template generates. Each extension must have a unique UUID. When you build an extension for the first time, the build script in the Xcode template replaces the placeholder UUID with a new UUID. The new UUID fulfills the uniqueness and persistence requirement for ProExtensionUUID. For subsequent rebuilds, the UUID stays the same because the Compressor app uses this UUID to differentiate between previously saved and newly discovered extensions.

§Availability

  • ProVideo Workflow Extensions 1.0+
  • ProVideo Encoder Extensions 1.0+

§Framework

  • ProExtension
§password_generation_requirements: Option<String>

Account Authentication Modification. The rules the system satisfies when generating a strong password for your extension during an automatic upgrade.

§Availability

  • iOS 14.0+

§Framework

  • Foundation
§supports_strong_password_upgrade: Option<bool>

Account Authentication Modification. A Boolean value that indicates whether the extension supports upgrading a user’s password to a strong password.

§Availability

  • iOS 14.0+

§Framework

  • Foundation
§supports_upgrade_to_sign_in_with_apple: Option<bool>

Account Authentication Modification. A Boolean value that indicates whether the extension supports upgrading from using password authentication to using Sign in with Apple.

§Availability

  • iOS 14.0+

§Framework

  • Foundation
§extension_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
§extension_attributes: Option<ExtensionAttributes>

Properties of an app extension.

§Availability

  • iOS 8.0+
  • macOS 10.10+

§Framework

  • Foundation
§extension_main_storyboard: Option<String>

The name of the app extension’s main storyboard file.

This key is mutually exclusive with NSExtensionPrincipalClass. Typically, Xcode sets the value of this key when creating an App Extension target in your project. If you change the name of your storyboard file, remember to update the value of this key.

§Availability

  • iOS 8.0+
  • macOS 10.10+

§Framework

  • Foundation
§extension_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
§extension_point_identifier: Option<ExtensionPointIdentifier>

The extension point that supports an app extension.

§Availability

  • iOS 8.0+
  • macOS 10.10+

§Framework

  • Foundation
§extension_principal_class: Option<String>

The custom class that implements an app extension’s primary view or functionality.

This key is mutually exclusive with NSExtensionMainStoryboard. Typically, Xcode sets the value of this key when creating an App Extension target in your project. If you change the name of the specified class, remember to update the value of this key.

§Availability

  • iOS 8.0+
  • macOS 10.10+

§Framework

  • Foundation
§safari_content_script: Option<Vec<SafariContentScript>>

The content scripts for a Safari extension.

§Availability

  • macOS 10.11.5+

§Framework

  • Safari Services
§safari_context_menu: Option<Vec<SafariContextMenu>>

The context menu items for a Safari extension.

§Availability

  • macOS 10.11.5+

§Framework

  • Safari Services
§safari_style_sheet: Option<Vec<SafariStyleSheet>>

The style sheet for a Safari extension.

§Availability

  • macOS 10.11.5+

§Framework

  • Safari Services
§safari_toolbar_item: Option<SafariToolbarItem>

The items to add to the toolbar for a Safari extension.

§Availability

  • macOS 10.11.5+

§Framework

  • Safari Services
§safari_website_access: Option<SafariWebsiteAccess>

The webpages a Safari extension can access.

§Availability

  • macOS 10.11.5+

§Framework

  • Safari Services

Trait Implementations§

Source§

impl Clone for Extension

Source§

fn clone(&self) -> Extension

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for Extension

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for Extension

Source§

fn default() -> Extension

Returns the “default value” for a type. Read more
Source§

impl<'de> Deserialize<'de> for Extension

Source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl PartialEq for Extension

Source§

fn eq(&self, other: &Extension) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl Serialize for Extension

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl StructuralPartialEq for Extension

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,