LinkliveSDKDelegate Protocol Reference
| Conforms to | NSObject | 
|---|---|
| Declared in | LinkliveMethodProtocol.h | 
– hasAgreeGDPR
required method
	Whether user agree with GDPRs
- (BOOL)hasAgreeGDPRDeclared In
LinkliveMethodProtocol.h
– agreePrivacyPolicyWithCompletion:
required method
	Call back when user agree with privacy policy.If the policy has been agreed,please return YES;
- (BOOL)agreePrivacyPolicyWithCompletion:(void ( ^ ) ( BOOL hasAgree ))completionBlockParameters
completionBlock | 
						completionBlock hasAgree  | 
					
|---|
Declared In
LinkliveMethodProtocol.h
– onBuyCoinsWithOrderId:source:completion:
	Paywall Interaction callback
- (void)onBuyCoinsWithOrderId:(NSString *)orderId source:(LMRechargeSource)source completion:(void ( ^ ) ( BOOL success , NSInteger coinCount , NSString *orderId ))completionBlockParameters
orderId | 
						orderId  | 
					
|---|---|
source | 
						source type  | 
					
completionBlock | 
						success:Pauyment result . coinCount : The coin count of user  | 
					
Declared In
LinkliveMethodProtocol.h
– onTokenIsInvalid:
	Call back when token for requseting servers is invalid.
- (void)onTokenIsInvalid:(NSError *)errorParameters
error | 
						error info  | 
					
|---|
Declared In
LinkliveMethodProtocol.h
– shareWithContent:superView:
	Call back when user click share.
- (void)shareWithContent:(LMVideoShareContent *)shareContent superView:(UIView *)superViewParameters
shareContent | 
						share infomation  | 
					
|---|---|
superView | 
						share panel’s super view  | 
					
Declared In
LinkliveMethodProtocol.h
– onUserBlock
	Call back when user is blocked.
- (void)onUserBlockDeclared In
LinkliveMethodProtocol.h
– filterGender
	This value will be used to fileter Trending page and Nearby page
- (LMRequestGender)filterGenderDeclared In
LinkliveMethodProtocol.h
– onHomePageSelected:
	home page selected index
- (void)onHomePageSelected:(int)pageParameters
page | 
						page start from 0  | 
					
|---|
Declared In
LinkliveMethodProtocol.h
– updateChatUnReadNum:
	update unread message number callback
- (void)updateChatUnReadNum:(NSInteger)numberParameters
number | 
						chat unred number  | 
					
|---|
Declared In
LinkliveMethodProtocol.h
– onDataTrack:
	data track info
- (void)onDataTrack:(KEWLDataTrackModel *)dataTrackModelParameters
dataTrackModel | 
						data information  | 
					
|---|
Declared In
LinkliveMethodProtocol.h
– showSettingGenderView:
	If gender is not set,Show the gender setting page, after the setting is completed, the block callback result needs to be executed, If the gender has been set to male or female, call block directly, and the succeed parameter value is YES, the gender parameter passes the corresponding gender value (0 or 1)
- (void)showSettingGenderView:(void ( ^ ) ( BOOL succeed , int gender ))completionParameters
completion | 
						Complete callback completion block parameters: succeed - Whether to set gender successfully, gender - female 0, male 1  | 
					
|---|
Declared In
LinkliveMethodProtocol.h
– onClickCart
	When the user click the cart You should jump to the cart page
- (void)onClickCartDeclared In
LinkliveMethodProtocol.h
– onClickViewDetails
	Click the view detail button in the live room
- (void)onClickViewDetailsDeclared In
LinkliveMethodProtocol.h
– liveRoomWillAppear:
	called when live room will appear, use LMLiveScebe to distinguish between viewer and boardcaster
- (void)liveRoomWillAppear:(LMLiveScebe)sceneParameters
scene | 
						scene  | 
					
|---|
Declared In
LinkliveMethodProtocol.h
– liveRoomWillDisappear:
	called when live room will disappear, use LMLiveScebe to distinguish between viewer and boardcaster
- (void)liveRoomWillDisappear:(LMLiveScebe)sceneParameters
scene | 
						scene  | 
					
|---|
Declared In
LinkliveMethodProtocol.h
– onAddToCart:complete:
	- When user click the commodity to add to the cart in the live room, You should add the specified commodity to the cart
 
- (void)onAddToCart:(NSDictionary *)commodityModel complete:(void ( ^ ) ( BOOL success , NSInteger count ))completionBlockParameters
commodityModel | 
						commodityModel  | 
					
|---|---|
completionBlock | 
						completionBlock  | 
					
Declared In
LinkliveMethodProtocol.h
– onGetCartCount:
	Get the commodity count in cart
- (void)onGetCartCount:(void ( ^ ) ( NSInteger count ))completionBlockParameters
completionBlock | 
						completionBlock  | 
					
|---|
Declared In
LinkliveMethodProtocol.h
– onClickCommodity:
	When user click the commodity in the live room You should jump to the commodity detail page.
- (void)onClickCommodity:(NSDictionary *)commodityModelParameters
commodityModel | 
						commodityModel  | 
					
|---|
Declared In
LinkliveMethodProtocol.h
– isHideLiveDetailEntrance:complete:
	hide live detail entrance
- (void)isHideLiveDetailEntrance:(NSString *)vid complete:(void ( ^ ) ( BOOL hidden ))completionBlockParameters
vid | 
						video id  | 
					
|---|---|
completionBlock | 
						completionBlock  | 
					
Declared In
LinkliveMethodProtocol.h