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>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
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>, [src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>, [src]Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations
impl RefUnwindSafe for Bluetoothimpl UnwindSafe for BluetoothBlanket Implementations
Mutably borrows from an owned value. Read more