ESTSettingBase
@interface ESTSettingBase : NSObject
ESTSettingBase defines a base class for all device related settings.
-
Method allows to initialize setting with data.
Declaration
Objective-C
- (nonnull instancetype)initWithData:(nonnull NSData *)data;
Swift
init(data: Data)
Parameters
data
Data describing desired value of setting.
Return Value
Initialized object.
-
Method allows to verify if provided setting is not a duplicate of another one. Estimote SDK expects to have one setting of each kind for single device. It means that settings of the same class should not be duplicated in Setting Manager. there are some exceptions though (like Generic Advertisers) where next to the class another parameter is important (Advertiser ID for example above). In that situation method should be overridden in particular class.
Declaration
Objective-C
- (BOOL)isDuplicateOfSetting:(nonnull ESTSettingBase *)setting;
Swift
func isDuplicate(ofSetting setting: ESTSettingBase) -> Bool
Parameters
setting
Satting the comparison should be made to.
Return Value
Result of duplicate validation.