SDK Version. More...
Instance Methods | |
| (NSString *) | - description |
| Returns a string representation of this version. More... | |
| (instancetype) | - init |
| Initializes a new instance of the FMLiveSwitchVersion class with default values. More... | |
| (instancetype) | - initWithVersionString: |
| Initializes a new instance of the FMLiveSwitchVersion class with the specified version string. More... | |
| (bool) | - isEqualToWithVersion: |
| Determines whether this version is equal to the specified version. More... | |
| (bool) | - isNewerThanOrEqualToWithVersion: |
| Determines whether this version is newer than or equal to the specified version. More... | |
| (bool) | - isNewerThanWithVersion: |
| Determines whether this version is newer than the specified version. More... | |
| (bool) | - isOlderThanOrEqualToWithVersion: |
| Determines whether this version is older than or equal to the specified version. More... | |
| (bool) | - isOlderThanWithVersion: |
| Determines whether this version is older than the specified version. More... | |
| (int) | - major |
| Gets the major version number. More... | |
| (int) | - minor |
| Gets the minor version number. More... | |
| (int) | - patch |
| Gets the patch version number. More... | |
| (int) | - revision |
| Gets the revision version number. More... | |
| (void) | - setMajor: |
| Sets the major version number. More... | |
| (void) | - setMinor: |
| Sets the minor version number. More... | |
| (void) | - setPatch: |
| Sets the patch version number. More... | |
| (void) | - setRevision: |
| Sets the revision version number. More... | |
| (NSString *) | - stringify |
| Returns a string representation of this version. More... | |
Class Methods | |
| (FMLiveSwitchVersion *) | + parseWithVersionString: |
| Converts the string representation of a version to its FMLiveSwitchVersion equivalent. More... | |
| (bool) | + tryParseWithVersionString:version: |
| Tries to convert the string representation of a version to its FMLiveSwitchVersion equivalent, and returns a value that indicates whether the conversion succeeded. More... | |
| (FMLiveSwitchVersion *) | + version |
| Initializes a new instance of the FMLiveSwitchVersion class with default values. More... | |
| (FMLiveSwitchVersion *) | + versionWithVersionString: |
| Initializes a new instance of the FMLiveSwitchVersion class with the specified version string. More... | |
SDK Version.
| - (NSString*) description |
Returns a string representation of this version.
| - (instancetype) init |
Initializes a new instance of the FMLiveSwitchVersion class with default values.
| - (instancetype) initWithVersionString: | (NSString *) | versionString |
Initializes a new instance of the FMLiveSwitchVersion class with the specified version string.
| versionString | A string representation of the version in the format "major.minor.patch.revision". |
| - (bool) isEqualToWithVersion: | (FMLiveSwitchVersion *) | version |
Determines whether this version is equal to the specified version.
| version | The version to compare with this version. |
true if the versions are equal; otherwise, false. | - (bool) isNewerThanOrEqualToWithVersion: | (FMLiveSwitchVersion *) | version |
Determines whether this version is newer than or equal to the specified version.
| version | The version to compare with this version. |
true if this version is newer than or equal to the specified version; otherwise, false. | - (bool) isNewerThanWithVersion: | (FMLiveSwitchVersion *) | version |
Determines whether this version is newer than the specified version.
A development version (0.0.0.0) is considered newer than all other versions except another development version.
| version | The version to compare with this version. |
true if this version is newer than the specified version; otherwise, false. | - (bool) isOlderThanOrEqualToWithVersion: | (FMLiveSwitchVersion *) | version |
Determines whether this version is older than or equal to the specified version.
| version | The version to compare with this version. |
true if this version is older than or equal to the specified version; otherwise, false. | - (bool) isOlderThanWithVersion: | (FMLiveSwitchVersion *) | version |
Determines whether this version is older than the specified version.
A development version (0.0.0.0) is not considered older than any other version.
| version | The version to compare with this version. |
true if this version is older than the specified version; otherwise, false. | - (int) major |
Gets the major version number.
| - (int) minor |
Gets the minor version number.
| + (FMLiveSwitchVersion*) parseWithVersionString: | (NSString *) | versionString |
Converts the string representation of a version to its FMLiveSwitchVersion equivalent.
| versionString | A string representation of the version to parse. |
null if the conversion failed. | - (int) patch |
Gets the patch version number.
| - (int) revision |
Gets the revision version number.
| - (void) setMajor: | (int) | value |
Sets the major version number.
| - (void) setMinor: | (int) | value |
Sets the minor version number.
| - (void) setPatch: | (int) | value |
Sets the patch version number.
| - (void) setRevision: | (int) | value |
Sets the revision version number.
| - (NSString*) stringify |
Returns a string representation of this version.
| + (bool) tryParseWithVersionString: | (NSString *) | versionString | |
| version: | (FMLiveSwitchVersion **) | version | |
Tries to convert the string representation of a version to its FMLiveSwitchVersion equivalent, and returns a value that indicates whether the conversion succeeded.
| versionString | A string representation of the version to parse. |
| version | When this method returns, contains the FMLiveSwitchVersion equivalent of the version contained in , if the conversion succeeded, or null if the conversion failed. |
true if was converted successfully; otherwise, false. | + (FMLiveSwitchVersion*) version |
Initializes a new instance of the FMLiveSwitchVersion class with default values.
| + (FMLiveSwitchVersion*) versionWithVersionString: | (NSString *) | versionString |
Initializes a new instance of the FMLiveSwitchVersion class with the specified version string.
| versionString | A string representation of the version in the format "major.minor.patch.revision". |