Struct apple_bundle::info_plist::protected_resources::Bluetooth[][src]

pub struct Bluetooth {
    pub bluetooth_always_usage_description: Option<String>,
    pub bluetooth_peripheral_usage_description: Option<String>,
}
Expand description

Bluetooth

Fields

bluetooth_always_usage_description: Option<String>

A message that tells the user why the app needs access to Bluetooth.

This key is required if your app uses the device’s Bluetooth interface.

Important

If your app has a deployment target earlier than iOS 13, add the NSBluetoothPeripheralUsageDescription key to your app’s Information Property List file in addition to this key.

Availability

  • iOS 13.0+
  • tvOS 13.0+
  • watchOS 6.0+

Framework

  • Core Bluetooth
bluetooth_peripheral_usage_description: Option<String>
👎 Deprecated since iOS 6.0–13.0

A message that tells the user why the app is requesting the ability to connect to Bluetooth peripherals.

For apps with a deployment target of iOS 13 and later, use NSBluetoothAlwaysUsageDescription instead.

For deployment targets earlier than iOS 13, add both NSBluetoothAlwaysUsageDescription and NSBluetoothPeripheralUsageDescription to your app’s Information Property List file. Devices running earlier versions of iOS rely on NSBluetoothPeripheralUsageDescription, while devices running later versions rely on NSBluetoothAlwaysUsageDescription.

Important

This key is required if your app uses APIs that access Bluetooth peripherals and has a deployment target earlier than iOS 13.

Availability

  • iOS 6.0–13.0

Framework

  • Core Bluetooth

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.