mirror of
https://github.com/ecency/ecency-mobile.git
synced 2024-12-21 04:11:50 +03:00
19 lines
483 B
Objective-C
19 lines
483 B
Objective-C
#import <Foundation/Foundation.h>
|
|
|
|
/**
|
|
* Protocol to define an instance that can be enabled/disabled.
|
|
*/
|
|
@protocol MSEnable <NSObject>
|
|
|
|
@required
|
|
|
|
/**
|
|
* Enable/disable this instance and delete data on disabled state.
|
|
*
|
|
* @param isEnabled A boolean value set to YES to enable the instance or NO to disable it.
|
|
* @param deleteData A boolean value set to YES to delete data or NO to keep it.
|
|
*/
|
|
- (void)setEnabled:(BOOL)isEnabled andDeleteDataOnDisabled:(BOOL)deleteData;
|
|
|
|
@end
|