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§
Source§impl<'de> Deserialize<'de> for Bluetooth
impl<'de> Deserialize<'de> for Bluetooth
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
impl Eq for Bluetooth
impl StructuralPartialEq for Bluetooth
Auto Trait Implementations§
impl Freeze for Bluetooth
impl RefUnwindSafe for Bluetooth
impl Send for Bluetooth
impl Sync for Bluetooth
impl Unpin for Bluetooth
impl UnwindSafe for Bluetooth
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.