jiGuangXieZuo/ProductApp/Pods/GYSDK/GeYanSdk.framework/Headers/GyAuthPrivacyItem.h

84 lines
2.4 KiB
C
Raw Normal View History

2024-10-17 16:36:05 +08:00
//
// GyAuthPrivacyItem.h
// GySdkLib
//
// Created by lzy on 2019/7/19.
// Copyright © 2019 getui. All rights reserved.
//
NS_ASSUME_NONNULL_BEGIN
@class GyAuthPrivacyItem;
typedef void(^OLPrivacyTermItemBlock)(GyAuthPrivacyItem *termItem, UIViewController *controller);
@interface GyAuthPrivacyItem : NSObject
/**
* , "GyAuthViewModel#webNaviTitle",
*/
@property(nonatomic, strong) NSString *termTitle;
/**
* , "GyAuthViewModel#webNaviTitle",
*/
@property(nonatomic, strong) NSAttributedString *termAttributeTitle;
/**
*/
@property(nonatomic, strong) NSURL *termLink;
/**
*/
@property (nonatomic, strong) NSURLRequest *urlRequest;
/**
SDK内部服务条款页面
*/
@property(nonatomic, copy, nullable) OLPrivacyTermItemBlock block;
/**
0
*/
@property(nonatomic, assign) NSInteger index;
/**
* init
* @param title NSString或者NSAttributedString
* @param url
*/
- (instancetype)initWithTitle:(id)title linkURL:(NSURL *)url;
/**
*
* @param title NSString或者NSAttributedString
* @param url
* @param index
*/
- (instancetype)initWithTitle:(id)title linkURL:(NSURL *)url index:(NSInteger)index;
/**
*
* @param title NSString或者NSAttributedString
* @param url
* @param index
* @param block
*/
- (instancetype)initWithTitle:(id)title linkURL:(NSURL *)url index:(NSInteger)index block:(OLPrivacyTermItemBlock _Nullable)block;
/**
*
* @param title NSString或者NSAttributedString
* @param urlRequest NSURLRequesthtml
* @param index
* @param block
*/
- (instancetype)initWithTitle:(id)title urlRequest:(NSURLRequest *)urlRequest index:(NSInteger)index block:(OLPrivacyTermItemBlock _Nullable)block;
- (NSString *)text;
- (nullable NSURL *)url;
@end
NS_ASSUME_NONNULL_END