developer
2023-05-20 e12c7b4c22df631ebdcd16b2f98fbef8f738f92f
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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
//
//  SSUIShareSheetConfiguration.h
//  ShareSDKUI
//
//  Created by Max on 2018/4/3.
//  Copyright © 2018年 Max. All rights reserved.
//
 
#import <UIKit/UIKit.h>
 
/**
 *  ShareSDK UI风格
 */
typedef NS_ENUM(NSInteger, SSUIActionSheetStyle)  {
    SSUIActionSheetStyleSystem     = 0,    // 系统类型,默认
    SSUIActionSheetStyleSimple     = 1,    // 简洁类型
};
 
typedef NS_ENUM(NSUInteger, SSUIItemAlignment) {
    SSUIItemAlignmentLeft,
    SSUIItemAlignmentCenter,
    SSUIItemAlignmentRight,
};
 
@interface SSUIShareSheetConfiguration : NSObject
 
/**
 *  设置ShareSDK UI风格
 */
@property (assign, nonatomic) SSUIActionSheetStyle style;
 
/**
 * 竖屏设置每行多少个item
 */
@property (assign, nonatomic) NSInteger columnPortraitCount;
 
/**
 * 横屏设置每行多少个item
 */
@property (assign, nonatomic) NSInteger columnLandscapeCount;
 
/**
 *  设置分享菜单栏的背景颜色
 */
@property (strong, nonatomic) UIColor *shadeColor;
 
/**
 *  设置分享菜单栏的背景颜色
 */
@property (strong, nonatomic) UIColor *menuBackgroundColor;
 
/**
 *  设置标题文本颜色
 */
@property (strong, nonatomic) UIColor *itemTitleColor;
 
/**
 *  设置标题文本字体
 */
@property (strong, nonatomic) UIFont *itemTitleFont;
 
/**
 *  取消按钮是否隐藏,默认不隐藏
 */
@property (assign, nonatomic, getter=isCancelButtonHidden) BOOL cancelButtonHidden;
 
/**
 *  设置取消按钮标签文本颜色
 */
@property (strong, nonatomic) UIColor *cancelButtonTitleColor;
 
/**
 *  设置取消按钮背景色
 */
@property (strong, nonatomic) UIColor *cancelButtonBackgroundColor;
 
/**
 *  设置UIPageControl的默认Indicator的颜色
 */
@property (strong, nonatomic) UIColor *pageIndicatorTintColor;
 
/**
 *  设置UIPageControl的选中Indicator的颜色
 */
@property (strong, nonatomic) UIColor *currentPageIndicatorTintColor;
 
/**
 *  设置支持的页面方向(单独控制分享菜单栏)
 */
@property (assign, nonatomic) UIInterfaceOrientationMask interfaceOrientationMask;
 
/**
 *  设置分享菜单栏状态栏风格
 */
@property (assign, nonatomic) UIStatusBarStyle statusBarStyle;
 
/**
 *  对齐方式 注:简约版菜单无居中对齐
 */
@property (assign, nonatomic) SSUIItemAlignment itemAlignment;
 
/**
 *  设置直接分享的平台(不弹编辑界面)
 */
@property (strong, nonatomic) NSArray *directSharePlatforms;
 
@end