2019-08-02 14:19:31 +03:00
|
|
|
// Copyright (c) Microsoft Corporation. All rights reserved.
|
|
|
|
// Licensed under the MIT License.
|
|
|
|
|
2018-11-19 12:44:58 +03:00
|
|
|
#import <Foundation/Foundation.h>
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Protocol declaring service logic.
|
|
|
|
*/
|
|
|
|
@protocol MSService <NSObject>
|
|
|
|
|
|
|
|
/**
|
2019-03-07 17:08:56 +03:00
|
|
|
* Enable or disable this service.
|
|
|
|
* The state is persisted in the device's storage across application launches.
|
2018-11-19 12:44:58 +03:00
|
|
|
*
|
2019-03-07 17:08:56 +03:00
|
|
|
* @param isEnabled Whether this service is enabled or not.
|
2018-11-19 12:44:58 +03:00
|
|
|
*
|
2019-03-07 17:08:56 +03:00
|
|
|
* @see isEnabled
|
2018-11-19 12:44:58 +03:00
|
|
|
*/
|
|
|
|
+ (void)setEnabled:(BOOL)isEnabled;
|
|
|
|
|
|
|
|
/**
|
2019-03-07 17:08:56 +03:00
|
|
|
* Indicates whether this service is enabled.
|
2018-11-19 12:44:58 +03:00
|
|
|
*
|
2019-03-07 17:08:56 +03:00
|
|
|
* @return `YES` if this service is enabled, `NO` if it is not.
|
2018-11-19 12:44:58 +03:00
|
|
|
*
|
2019-03-07 17:08:56 +03:00
|
|
|
* @see setEnabled:
|
2018-11-19 12:44:58 +03:00
|
|
|
*/
|
|
|
|
+ (BOOL)isEnabled;
|
|
|
|
|
|
|
|
@end
|