Struct apple_bundle::info_plist::app_execution::Launch[][src]

pub struct Launch {
    pub principal_class: Option<String>,
    pub complication_principal_class: Option<Vec<String>>,
    pub bundle_executable: Option<String>,
    pub environment: Option<DefaultDictionary>,
    pub application_shortcut_items: Option<Vec<ApplicationShortcutItem>>,
}
Expand description

Launch

Fields

principal_class: Option<String>

The name of the bundle’s main executable class.

The system uses the class identified by this key to set the principalClass property of a bundle when it’s loaded.

Xcode sets the default value of this key to NSApplication for macOS apps, and to UIApplication for iOS and tvOS apps. For other types of bundles, you must set this key in The Info.plist File.

Availability

  • macOS 10.0+

Framework

  • Foundation
complication_principal_class: Option<Vec<String>>

The name of the class that implements the complication data source protocol.

Xcode automatically includes this key in the information property list when you modify the WatchKit extension’s data source (General > Complication Configuration > Data Source class).

Availability

  • watchOS 2.0+

Framework

  • WatchKit
bundle_executable: Option<String>

The name of the bundle’s executable file.

For an app, this key is the executable. For a loadable bundle, it’s the binary that’s loaded dynamically by the bundle. For a framework, it’s the shared library framework and must have the same name as the framework but without the .framework extension.

macOS uses this key to locate the bundle’s executable or shared library in cases where the user renames the app or bundle directory.

Availability

  • iOS 2.0+
  • macOS 10.0+
  • tvOS 9.0+
  • watchOS 2.0+

Framework

  • Core Foundation
environment: Option<DefaultDictionary>

Environment variables to set before launching the app.

Availability

  • macOS 10.0+

Framework

  • Core Services
application_shortcut_items: Option<Vec<ApplicationShortcutItem>>

Application shortcut items.

Availability

  • iOS 9.0+

Framework

  • UIKit

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

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

Deserialize this value from the given Serde deserializer. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

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

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

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

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.