-
Notifications
You must be signed in to change notification settings - Fork 62
Expand file tree
/
Copy pathUXReaderAction.h
More file actions
44 lines (27 loc) · 1.19 KB
/
UXReaderAction.h
File metadata and controls
44 lines (27 loc) · 1.19 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
//
// UXReaderAction.h
// UXReader Framework v0.1
//
// Copyright © 2017-2019 Julius Oklamcak. All rights reserved.
//
#import <UIKit/UIKit.h>
@class UXReaderDestination;
typedef NS_ENUM(NSUInteger, UXReaderActionType)
{
UXReaderActionTypeNone, UXReaderActionTypeURI, UXReaderActionTypeGoto,
UXReaderActionTypeRemoteGoto, UXReaderActionTypeLaunch, UXReaderActionTypeLink
};
@interface UXReaderAction : NSObject <NSObject>
- (nullable instancetype)initWithURI:(nonnull NSString *)URI rectangle:(CGRect)rect;
- (nullable instancetype)initWithGoto:(nonnull UXReaderDestination *)destination rectangle:(CGRect)rect;
- (nullable instancetype)initWithRemoteGoto:(nonnull UXReaderDestination *)destination path:(nonnull NSString *)path rectangle:(CGRect)rect;
- (nullable instancetype)initWithLaunch:(nonnull NSString *)path rectangle:(CGRect)rect;
- (nullable instancetype)initWithLink:(nonnull NSString *)URI rectangles:(nonnull NSArray<NSValue *> *)rectangles;
- (BOOL)containsPoint:(CGPoint)point;
- (UXReaderActionType)type;
- (nullable NSString *)URI;
- (nullable NSString *)path;
- (nullable UXReaderDestination *)destination;
- (nullable NSArray<NSValue *> *)rectangles;
- (CGRect)rectangle;
@end