PLVWebViewConfig
Objective-C
@interface PLVWebViewConfig : NSObject
/// 加载 WebView 链接
@property (nonatomic, copy) NSString *urlString;
/// WebView 默认的UA
@property (nonatomic, copy) NSString *userAgent;
/// 浮窗类型(YES:系统浮窗画中画,NO:应用内浮窗) 默认为NO
@property (nonatomic, assign) BOOL isSystemFloatingWindow;
/// 是否允许使用浮窗功能,默认为YES
@property (nonatomic, assign) BOOL allowFloatingWindow;
/// 是否自动开启悬浮窗,默认为NO
@property (nonatomic, assign) BOOL enableAutoFloatWindow;
@end
Swift
class PLVWebViewConfig : NSObject
Undocumented
-
加载 WebView 链接
Declaration
Objective-C
@property (nonatomic, copy) NSString *_Nonnull urlString;
Swift
var urlString: String { get set }
-
WebView 默认的UA
Declaration
Objective-C
@property (nonatomic, copy) NSString *_Nonnull userAgent;
Swift
var userAgent: String { get set }
-
浮窗类型(YES:系统浮窗画中画,NO:应用内浮窗) 默认为NO
Declaration
Objective-C
@property (nonatomic) BOOL isSystemFloatingWindow;
Swift
var isSystemFloatingWindow: Bool { get set }
-
是否允许使用浮窗功能,默认为YES
Declaration
Objective-C
@property (nonatomic) BOOL allowFloatingWindow;
Swift
var allowFloatingWindow: Bool { get set }
-
是否自动开启悬浮窗,默认为NO
Declaration
Objective-C
@property (nonatomic) BOOL enableAutoFloatWindow;
Swift
var enableAutoFloatWindow: Bool { get set }