Skip to content

Commit 4e31a3c

Browse files
committed
Add availability annotations
1 parent da1e394 commit 4e31a3c

2 files changed

Lines changed: 4 additions & 3 deletions

File tree

Sources/AndroidBluetooth/BluetoothAdapter.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -73,23 +73,23 @@ open class BluetoothAdapter: JavaObject {
7373
///
7474
/// - Since: API Level 18
7575
/// - Deprecated: Use `BluetoothLeScanner.startScan()` instead (API 21+)
76-
@available(Android 18, deprecated: 21, message: "Use BluetoothLeScanner.startScan() instead")
76+
@available(Android, introduced: 18, deprecated: 21, message: "Use BluetoothLeScanner.startScan() instead")
7777
@JavaMethod
7878
open func startLeScan(_ arg0: [UUID?], _ arg1: BluetoothAdapter.LeScanCallback?) -> Bool
7979

8080
/// Starts a scan for Bluetooth LE devices.
8181
///
8282
/// - Since: API Level 18
8383
/// - Deprecated: Use `BluetoothLeScanner.startScan()` instead (API 21+)
84-
@available(Android 18, deprecated: 21, message: "Use BluetoothLeScanner.startScan() instead")
84+
@available(Android, introduced: 18, deprecated: 21, message: "Use BluetoothLeScanner.startScan() instead")
8585
@JavaMethod
8686
open func startLeScan(_ arg0: BluetoothAdapter.LeScanCallback?) -> Bool
8787

8888
/// Stops an ongoing Bluetooth LE device scan.
8989
///
9090
/// - Since: API Level 18
9191
/// - Deprecated: Use `BluetoothLeScanner.stopScan()` instead (API 21+)
92-
@available(Android 18, deprecated: 21, message: "Use BluetoothLeScanner.stopScan() instead")
92+
@available(Android, introduced: 18, deprecated: 21, message: "Use BluetoothLeScanner.stopScan() instead")
9393
@JavaMethod
9494
open func stopLeScan(_ arg0: BluetoothAdapter.LeScanCallback?)
9595

Sources/AndroidBluetooth/BluetoothLeAudio.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ open class BluetoothLeAudio: JavaObject {
3333
@JavaMethod
3434
open func close()
3535
}
36+
@available(Android 33, *)
3637
extension JavaClass<BluetoothLeAudio> {
3738
@JavaStaticField(isFinal: true)
3839
public var ACTION_LE_AUDIO_CONNECTION_STATE_CHANGED: String

0 commit comments

Comments
 (0)