LinkliveSDKDelegate Protocol Reference

Conforms to NSObject
Declared in LinkliveMethodProtocol.h

– hasAgreeGDPR required method

Whether user agree with GDPRs

- (BOOL)hasAgreeGDPR

Declared 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 ))completionBlock

Parameters

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 ))completionBlock

Parameters

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 *)error

Parameters

error

error info

Declared In

LinkliveMethodProtocol.h

– shareWithContent:superView:

Call back when user click share.

- (void)shareWithContent:(LMVideoShareContent *)shareContent superView:(UIView *)superView

Parameters

shareContent

share infomation

superView

share panel’s super view

Declared In

LinkliveMethodProtocol.h

– onUserBlock

Call back when user is blocked.

- (void)onUserBlock

Declared In

LinkliveMethodProtocol.h

– filterGender

This value will be used to fileter Trending page and Nearby page

- (LMRequestGender)filterGender

Declared In

LinkliveMethodProtocol.h

– onHomePageSelected:

home page selected index

- (void)onHomePageSelected:(int)page

Parameters

page

page start from 0

Declared In

LinkliveMethodProtocol.h

– updateChatUnReadNum:

update unread message number callback

- (void)updateChatUnReadNum:(NSInteger)number

Parameters

number

chat unred number

Declared In

LinkliveMethodProtocol.h

– onDataTrack:

data track info

- (void)onDataTrack:(KEWLDataTrackModel *)dataTrackModel

Parameters

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 ))completion

Parameters

completion

Complete callback completion block parameters: succeed - Whether to set gender successfully, gender - female 0, male 1

Declared In

LinkliveMethodProtocol.h

– startLogin

Trigger login

- (void)startLogin

Declared In

LinkliveMethodProtocol.h

– onClickCart

When the user click the cart You should jump to the cart page

- (void)onClickCart

Declared In

LinkliveMethodProtocol.h

– onClickViewDetails

Click the view detail button in the live room

- (void)onClickViewDetails

Declared In

LinkliveMethodProtocol.h

– liveRoomWillAppear:

called when live room will appear, use LMLiveScebe to distinguish between viewer and boardcaster

- (void)liveRoomWillAppear:(LMLiveScebe)scene

Parameters

scene

scene

Declared In

LinkliveMethodProtocol.h

– liveRoomWillDisappear:

called when live room will disappear, use LMLiveScebe to distinguish between viewer and boardcaster

- (void)liveRoomWillDisappear:(LMLiveScebe)scene

Parameters

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 ))completionBlock

Parameters

commodityModel

commodityModel

completionBlock

completionBlock

Declared In

LinkliveMethodProtocol.h

– onGetCartCount:

Get the commodity count in cart

- (void)onGetCartCount:(void ( ^ ) ( NSInteger count ))completionBlock

Parameters

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 *)commodityModel

Parameters

commodityModel

commodityModel

Declared In

LinkliveMethodProtocol.h

– isHideLiveDetailEntrance:complete:

hide live detail entrance

- (void)isHideLiveDetailEntrance:(NSString *)vid complete:(void ( ^ ) ( BOOL hidden ))completionBlock

Parameters

vid

video id

completionBlock

completionBlock

Declared In

LinkliveMethodProtocol.h