-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #4 from SensingKit/next
v0.4.0
- Loading branch information
Showing
102 changed files
with
4,465 additions
and
1,012 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,3 +16,4 @@ profile | |
*.moved-aside | ||
DerivedData | ||
.idea/ | ||
Documentation |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
// | ||
// NSString+SKSensorType.h | ||
// SensingKit | ||
// | ||
// Copyright (c) 2014. Queen Mary University of London | ||
// Kleomenis Katevas, k.katevas@qmul.ac.uk | ||
// | ||
// This file is part of SensingKit-iOS library. | ||
// For more information, please visit http://www.sensingkit.org | ||
// | ||
// SensingKit-iOS is free software: you can redistribute it and/or modify | ||
// it under the terms of the GNU Lesser General Public License as published by | ||
// the Free Software Foundation, either version 3 of the License, or | ||
// (at your option) any later version. | ||
// | ||
// SensingKit-iOS is distributed in the hope that it will be useful, | ||
// but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
// GNU Lesser General Public License for more details. | ||
// | ||
// You should have received a copy of the GNU Lesser General Public License | ||
// along with SensingKit-iOS. If not, see <http://www.gnu.org/licenses/>. | ||
// | ||
|
||
#import <Foundation/Foundation.h> | ||
#import "SKSensorType.h" | ||
|
||
NS_ASSUME_NONNULL_BEGIN | ||
|
||
/** | ||
* NSString+SKSensorType is a category responsible for converting an SKSensorType enum into string. | ||
*/ | ||
@interface NSString (SKSensorType) | ||
|
||
/** | ||
* Converts an SKSensorType enum into a string. | ||
* This method is useful when you want to use the sensor name in the application's User Interface. The returned string might contain spaces or special characters (such as '™'). For example, iBeacon™ Proximity sensor (enum iBeaconProximity) will be returned as "iBeacon™ Proximity". | ||
* | ||
* @param sensorType The type of the sensor. | ||
* | ||
* @return A string with the sensor name. (e.g. "iBeacon™ Proximity"). | ||
*/ | ||
+ (NSString *)stringWithSensorType:(SKSensorType)sensorType; | ||
|
||
/** | ||
* Converts an SKSensorType enum into a non-spaced string that does not include special characters. | ||
* This method is useful when you want to use the sensor name in file or directory names. The returned string does not contain spaces or any special character (such as '™'). For example, iBeacon™ Proximity sensor (enum iBeaconProximity) will be returned as "iBeaconProximity". | ||
* | ||
* @param sensorType The type of the sensor. | ||
* | ||
* @return A non-spaced string with the sensor name. (e.g. "iBeaconProximity"). | ||
*/ | ||
+ (NSString *)nonspacedStringWithSensorType:(SKSensorType)sensorType; | ||
|
||
@end | ||
|
||
NS_ASSUME_NONNULL_END |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.