SCPBuzzerVolumeParameters
Objective-C
@interface SCPBuzzerVolumeParameters : NSObject <SCPReaderSettingsParameters>
Swift
class BuzzerVolumeParameters : NSObject, ReaderSettingsParameters
Parameters for setting the buzzer (beep) volume on a reader via
[SCPTerminal setReaderSettings:completion:].
Use initWithLevel: for Low or High, or initWithVolume: for a
specific custom volume in the range 1...maxVolume.
Passing these parameters to a reader that does not support buzzer volume
control returns SCPErrorFeatureNotAvailableWithConnectedReader.
-
The volume level to apply.
Declaration
Objective-C
@property (nonatomic, readonly) SCPBuzzerVolumeLevel level;Swift
var level: BuzzerVolumeLevel { get } -
The custom volume to set. Only meaningful when
levelisSCPBuzzerVolumeLevelCustom— must be in the range1...maxVolume, wheremaxVolumecomes fromSCPBuzzerVolume.maxVolume. WhenlevelisLoworHigh, this value is undefined and must not be used.Declaration
Objective-C
@property (nonatomic, readonly) NSInteger volume;Swift
var volume: Int { get } -
Create parameters for
LoworHighvolume.Declaration
Objective-C
- (nonnull instancetype)initWithLevel:(SCPBuzzerVolumeLevel)level;Swift
init(level: BuzzerVolumeLevel)Parameters
levelSCPBuzzerVolumeLevelLoworSCPBuzzerVolumeLevelHigh. PassingSCPBuzzerVolumeLevelCustomis a programmer error; useinitWithVolume:instead. -
Create parameters for a specific custom volume.
Sets
leveltoSCPBuzzerVolumeLevelCustomautomatically. The volume must be in the range1...maxVolume(fromSCPBuzzerVolume.maxVolume); passing a value outside that range causessetReaderSettings:completion:to returnSCPErrorInvalidRequiredParameter.Declaration
Objective-C
- (nonnull instancetype)initWithVolume:(NSInteger)volume;Swift
init(volume: Int)Parameters
volumeThe target volume. Must be
>= 1and<= maxVolume. -
Unavailable
Use
initWithLevel:orinitWithVolume:instead.Declaration
Objective-C
- (nonnull instancetype)init; -
Unavailable
Use
initWithLevel:orinitWithVolume:instead.Declaration
Objective-C
+ (nonnull instancetype)new;