LinkliveMethodProtocol Protocol Reference
| Conforms to | NSObject | 
|---|---|
| Declared in | LinkliveMethodProtocol.h | 
+ sharedInstance
required method
	Returns the LiveMe singleton.
+ (instancetype)sharedInstanceDeclared In
LinkliveMethodProtocol.h
– initSDKWithAppid:appSecret:
required method
	Start LiveMe with your consumer secret
- (void)initSDKWithAppid:(NSString *)appid appSecret:(NSString *)appSecretParameters
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)setupTongDunDeclared In
LinkliveMethodProtocol.h
– onLoginSuccessWithOriginUid:openID:token:
required method
	Called when login LiveMe acount server successfully
- (void)onLoginSuccessWithOriginUid:(NSString *)originUid openID:(NSString *)openID token:(NSString *)tokenParameters
originUid | 
						originUid description  | 
					
|---|---|
openID | 
						openID description  | 
					
token | 
						token description  | 
					
Declared In
LinkliveMethodProtocol.h
– fetchVideoListVC
required method
	Get video list view
- (UIViewController *)fetchVideoListVCDeclared 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 ))completeParameters
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)startBroadcastDeclared In
LinkliveMethodProtocol.h
– startWatchLive:
required method
	Start playing live video
- (void)startWatchLive:(id)videoInfoParameters
videoInfo | 
						Live video information  | 
					
|---|
Declared In
LinkliveMethodProtocol.h
– jumpToLiveRoomWithVid:
required method
	Jump to the live room of the specified vid
- (void)jumpToLiveRoomWithVid:(NSString *)vidParameters
vid | 
						vid  | 
					
|---|
Declared In
LinkliveMethodProtocol.h
– routeWithURI:
required method
	Navigate to view controller by URI.
- (void)routeWithURI:(NSString *)uriParameters
uri | 
						url  | 
					
|---|
Declared In
LinkliveMethodProtocol.h
– openSearchPage
required method
	Navigate to Search page
- (void)openSearchPageDeclared In
LinkliveMethodProtocol.h
– openPersonalPage
required method
	Navigate to personal page
- (void)openPersonalPageDeclared In
LinkliveMethodProtocol.h
– openUserHomePage:
required method
	Navigate to user home page
- (void)openUserHomePage:(NSString *)userIDParameters
userID | 
						user home page userid  | 
					
|---|
Declared In
LinkliveMethodProtocol.h
– openContributionRankPage
required method
	Navigate to contribution rank page
- (void)openContributionRankPageDeclared In
LinkliveMethodProtocol.h
– showLiveListFilter
required method
	Show filter panel to filter live list
- (void)showLiveListFilterDeclared In
LinkliveMethodProtocol.h
– openMessageList
required method
	Navigatee to message list page
- (void)openMessageListDeclared In
LinkliveMethodProtocol.h
– getChatUnReadNum
required method
	unread message count return number
- (NSInteger)getChatUnReadNumDeclared In
LinkliveMethodProtocol.h
– onLogout
required method
	Called when the user logout
- (void)onLogoutDeclared In
LinkliveMethodProtocol.h
– isUserLogin
required method
	login status check
- (BOOL)isUserLoginDeclared 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)fromParameters
from | 
						from  | 
					
|---|
Declared In
LinkliveMethodProtocol.h
– showUserAppealWithUid:type:warningMsg:
required method
	Show user appeal page
- (void)showUserAppealWithUid:(NSString *)uid type:(NSInteger)type warningMsg:(NSString *)warningMsgParameters
uid | 
						uid  | 
					
|---|---|
type | 
						type  | 
					
warningMsg | 
						warning msg  | 
					
Declared In
LinkliveMethodProtocol.h
– getOrderId:
required method
	Get Order ID
- (void)getOrderId:(void ( ^ ) ( NSString *lmOrderId ))callbackParameters
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 *)deviceIdDeclared In
LinkliveMethodProtocol.h
– applicationWillTerminate:
required method
	Called in method applicationWillTerminate:
- (void)applicationWillTerminate:(UIApplication *)applicationParameters
application | 
						current application  | 
					
|---|
Declared In
LinkliveMethodProtocol.h
– didReceiveRemoteNotification:
required method
	Called when receiving a remote notification
- (void)didReceiveRemoteNotification:(NSDictionary *)userInfoParameters
userInfo | 
						Remote notification information  | 
					
|---|
Declared In
LinkliveMethodProtocol.h
– updateShopCartCount:
required method
	update shop cart count
- (void)updateShopCartCount:(NSInteger)countDeclared In
LinkliveMethodProtocol.h
– linkvShopLoginPage
required method
	登录页
- (void)linkvShopLoginPageDeclared In
LinkliveMethodProtocol.h
– linkvShopAddCartPage
required method
	购物车
- (void)linkvShopAddCartPageDeclared In
LinkliveMethodProtocol.h