LinkliveMethodProtocol Protocol Reference

Conforms to NSObject
Declared in LinkliveMethodProtocol.h

+ sharedInstance required method

Returns the LiveMe singleton.

+ (instancetype)sharedInstance

Declared In

LinkliveMethodProtocol.h

– initSDKWithAppid:appSecret: required method

Start LiveMe with your consumer secret

- (void)initSDKWithAppid:(NSString *)appid appSecret:(NSString *)appSecret

Parameters

appid

Your LiveMe application’s consumer appid

appSecret

Your LiveMe application’s consumer secret

Declared In

LinkliveMethodProtocol.h

– setupTongDun required method

Invoke this method after startWithAppid or startWIthSecret in release environment. Don’t invoke this method in debug environment,If you invoke this method in the debug environment, you can’t debug your device with Xcode.

- (void)setupTongDun

Declared In

LinkliveMethodProtocol.h

– onLoginSuccessWithOriginUid:openID:token: required method

Called when login LiveMe acount server successfully

- (void)onLoginSuccessWithOriginUid:(NSString *)originUid openID:(NSString *)openID token:(NSString *)token

Parameters

originUid

originUid description

openID

openID description

token

token description

Declared In

LinkliveMethodProtocol.h

– fetchVideoListVC required method

Get video list view

- (UIViewController *)fetchVideoListVC

Declared In

LinkliveMethodProtocol.h

– fetchVideoListData:gender:page:complete: required method

Get the specified live broadcast

- (void)fetchVideoListData:(LMVideoFrom)from gender:(LMRequestGender)gender page:(int)page complete:(void ( ^ ) ( LMVideoResponse *response , NSError *error ))complete

Parameters

from

Feature or follow

gender

Get the broadcast of the specified gender

page

Start with 0

complete

Callback

Declared In

LinkliveMethodProtocol.h

– startBroadcast required method

Start broadcast

- (void)startBroadcast

Declared In

LinkliveMethodProtocol.h

– startWatchLive: required method

Start playing live video

- (void)startWatchLive:(id)videoInfo

Parameters

videoInfo

Live video information

Declared In

LinkliveMethodProtocol.h

– jumpToLiveRoomWithVid: required method

Jump to the live room of the specified vid

- (void)jumpToLiveRoomWithVid:(NSString *)vid

Parameters

vid

vid

Declared In

LinkliveMethodProtocol.h

– routeWithURI: required method

Navigate to view controller by URI.

- (void)routeWithURI:(NSString *)uri

Parameters

uri

url

Declared In

LinkliveMethodProtocol.h

– openSearchPage required method

Navigate to Search page

- (void)openSearchPage

Declared In

LinkliveMethodProtocol.h

– openPersonalPage required method

Navigate to personal page

- (void)openPersonalPage

Declared In

LinkliveMethodProtocol.h

– openUserHomePage: required method

Navigate to user home page

- (void)openUserHomePage:(NSString *)userID

Parameters

userID

user home page userid

Declared In

LinkliveMethodProtocol.h

– openContributionRankPage required method

Navigate to contribution rank page

- (void)openContributionRankPage

Declared In

LinkliveMethodProtocol.h

– showLiveListFilter required method

Show filter panel to filter live list

- (void)showLiveListFilter

Declared In

LinkliveMethodProtocol.h

– openMessageList required method

Navigatee to message list page

- (void)openMessageList

Declared In

LinkliveMethodProtocol.h

– getChatUnReadNum required method

unread message count return number

- (NSInteger)getChatUnReadNum

Declared In

LinkliveMethodProtocol.h

– onLogout required method

Called when the user logout

- (void)onLogout

Declared In

LinkliveMethodProtocol.h

– isUserLogin required method

login status check

- (BOOL)isUserLogin

Declared In

LinkliveMethodProtocol.h

– showSdkHomePage: required method

When the user click the live tab, call this method It is used to report DAU of live

- (void)showSdkHomePage:(int)from

Parameters

from

from

Declared In

LinkliveMethodProtocol.h

– showUserAppealWithUid:type:warningMsg: required method

Show user appeal page

- (void)showUserAppealWithUid:(NSString *)uid type:(NSInteger)type warningMsg:(NSString *)warningMsg

Parameters

uid

uid

type

type

warningMsg

warning msg

Declared In

LinkliveMethodProtocol.h

– getOrderId: required method

Get Order ID

- (void)getOrderId:(void ( ^ ) ( NSString *lmOrderId ))callback

Parameters

callback

callback orderid

Declared In

LinkliveMethodProtocol.h

– deviceId required method

When login LiveMe acount,call the function to pass a customed device identifier as a paramter to service. return device union id

- (NSString *)deviceId

Declared In

LinkliveMethodProtocol.h

– applicationWillTerminate: required method

Called in method applicationWillTerminate:

- (void)applicationWillTerminate:(UIApplication *)application

Parameters

application

current application

Declared In

LinkliveMethodProtocol.h

– didReceiveRemoteNotification: required method

Called when receiving a remote notification

- (void)didReceiveRemoteNotification:(NSDictionary *)userInfo

Parameters

userInfo

Remote notification information

Declared In

LinkliveMethodProtocol.h

– updateShopCartCount: required method

update shop cart count

- (void)updateShopCartCount:(NSInteger)count

Declared In

LinkliveMethodProtocol.h

– linkvShopLoginPage required method

登录页

- (void)linkvShopLoginPage

Declared In

LinkliveMethodProtocol.h

– linkvShopAddCartPage required method

购物车

- (void)linkvShopAddCartPage

Declared In

LinkliveMethodProtocol.h