@@ -27,15 +27,22 @@ NS_ASSUME_NONNULL_BEGIN
27
27
28
28
@interface ARKLogMessage : NSObject <NSCopying , NSSecureCoding >
29
29
30
+ + (instancetype )new NS_UNAVAILABLE;
31
+ - (instancetype )init NS_UNAVAILABLE;
32
+
33
+ // / Creates an ARKLogMessage with the provided parameters, created at the current date.
34
+ // / @see initWithText:image:type:userInfo:creationDate:
30
35
- (instancetype )initWithText : (NSString *)text image : (nullable UIImage *)image type : (ARKLogType)type userInfo : (nullable NSDictionary *)userInfo ;
31
36
37
+ - (instancetype )initWithText : (NSString *)text image : (nullable UIImage *)image type : (ARKLogType)type userInfo : (nullable NSDictionary *)userInfo creationDate : (NSDate *)date NS_DESIGNATED_INITIALIZER;
38
+
32
39
@property (nonatomic , copy , readonly ) NSDate *creationDate;
33
40
@property (nonatomic , copy , readonly ) NSString *text;
34
- @property (nonatomic , readonly ) UIImage *image;
41
+ @property (nonatomic , readonly , nullable ) UIImage *image;
35
42
@property (nonatomic , readonly ) ARKLogType type;
36
43
37
- // / Arbitrary information used by ARKLogBlocks. This data is not persisted
38
- @property (nonatomic , copy , readonly ) NSDictionary *userInfo;
44
+ // / Arbitrary information used by ARKLogBlocks. This data is not persisted.
45
+ @property (nonatomic , copy , readonly , nullable ) NSDictionary *userInfo;
39
46
40
47
@end
41
48
0 commit comments