Represents setting as its kind and fixed array of possible string values.
More...
#import <DeviceSetting.h>
Represents setting as its kind and fixed array of possible string values.
You can get current selected value by using getValue or valueIndex and set value by using selectValueWithIndex::}
◆ getValue()
Get string representation of the currently selected value.
◆ selectValueWithIndex:error:()
- (BOOL) selectValueWithIndex: |
|
(NSNumber *_Nonnull) |
index |
error: |
|
(NSError *_Nullable *_Nullable) |
error |
|
|
| |
Select variant from values array.
- Exceptions
-
MedMDeviceKitException | possible codes: DeviceKitUnsupportedOperation, DeviceKitIndexOutOfBounds |
◆ setValue:error:()
- (BOOL) setValue: |
|
(NSString *_Nonnull) |
value |
error: |
|
(NSError *_Nullable *_Nullable) |
error |
|
|
| |
Set setting value.
- Parameters
-
value | string representation of the new value. For all settings apart from EncryptionKey should be one of values@throwsMedMDeviceKitExceptionpossiblecodes:DeviceKitUnsupportedOperation,DeviceKitInvalidArgument |
◆ isReadonly
Is this setting readonly, usually means that you can set this setting only before adding.
If true calling selectValueWithIndex:error: would result in exception.
◆ kind
◆ valueIndex
- (NSNumber* _Nonnull) valueIndex |
|
readnonatomicretain |
Get current setting value position in values array.
◆ values
- (NSArray<NSString*>* _Nonnull) values |
|
readnonatomicretain |
Get possible device setting variants.
The array is fixed for the specific setting instance.
The documentation for this class was generated from the following files: