• BlackBerry Dynamics
  • Runtime library for iOS applications
  • 12.0.1.79
GDVersion.h
Go to the documentation of this file.
1 /*
2  * Copyright 2023 BlackBerry Limited. All rights reserved.
3  *
4  */
5 
6 #pragma once
7 
8 #import <Foundation/Foundation.h>
9 
10 NS_ASSUME_NONNULL_BEGIN
11 
18 @interface GDVersion : NSObject
19 
25 - (nullable instancetype)initWithString:(NSString*)versionString;
26 
32 - (nullable instancetype)initWithArray:(NSArray*)array;
33 
39 - (NSUInteger)numberOfVersionParts;
40 
49 - (NSUInteger)versionPartAt:(NSUInteger)position;
50 
56 - (NSComparisonResult)compare:(GDVersion*)anotherVersion;
57 
63 - (BOOL)isEqualToVersion:(nullable GDVersion*)anotherVersion;
64 
70 - (BOOL)isGreaterThanVersion:(nullable GDVersion*)anotherVersion;
71 
77 - (BOOL)isLessThanVersion:(nullable GDVersion*)anotherVersion;
78 
83 @property(nonatomic, readonly) NSString *stringValue;
84 @end
85 
86 NS_ASSUME_NONNULL_END
GDVersion::stringValue
NSString * stringValue
Dotted string representation.
Definition: GDVersion.h:83
GDVersion
BlackBerry Dynamics entitlement version.
Definition: GDVersion.h:18
-[GDVersion numberOfVersionParts]
NSUInteger numberOfVersionParts()
Count of how many constituent numbers are in the version.