Skip to content

Commit 5aea2d0

Browse files
committed
Add availability annotations
1 parent 6466089 commit 5aea2d0

3 files changed

Lines changed: 6 additions & 0 deletions

File tree

Sources/AndroidOS/VibrationAttributes.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,8 @@ open class VibrationAttributes: JavaObject {
4949
@JavaMethod
5050
open func getFlags() -> Int32
5151
}
52+
53+
@available(Android 30, *)
5254
extension JavaClass<VibrationAttributes> {
5355
@JavaStaticField(isFinal: true)
5456
public var CREATOR: Parcelable.Creator<VibrationAttributes>!

Sources/AndroidOS/VibrationEffect+Composition.swift

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
import SwiftJava
33
import CSwiftJavaJNI
44

5+
@available(Android 30, *)
56
extension VibrationEffect {
67
/// A composition of haptic primitives that, when combined, create more complex haptic patterns.
78
///
@@ -43,6 +44,8 @@ extension VibrationEffect {
4344
open func compose() -> VibrationEffect!
4445
}
4546
}
47+
48+
@available(Android 30, *)
4649
extension JavaClass<VibrationEffect.Composition> {
4750
/// Primitive: a brief, standard feedback effect (click).
4851
@JavaStaticField(isFinal: true)

Sources/AndroidView/InputDevice.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ open class InputDevice: JavaObject {
5353
@JavaMethod
5454
open func getVibrator() -> Vibrator!
5555

56+
@available(Android 31, *)
5657
@JavaMethod
5758
open func getVibratorManager() -> VibratorManager!
5859

0 commit comments

Comments
 (0)