LiveMeSDK Class Reference
| Inherits from | NSObject |
|---|---|
| Conforms to | LinkliveMethodProtocol |
| Declared in | LiveMeSDK.h LiveMeSDK.m |
Overview
Use LiveMeSDK to quickly integrate the full live broadcast function, which is the api collection class for live broadcast function.
Other Methods
delegate
set delegate
@property (nonatomic, weak) id<LinkliveSDKDelegate> delegateDeclared In
LiveMeSDK.h
showLoginView
Whether show login view of LiveMe.Default is NO.
@property (nonatomic, assign) BOOL showLoginViewDeclared In
LiveMeSDK.h
Other Methods
+ sharedInstance
Returns the LiveMe singleton.
+ (instancetype)sharedInstanceDeclared In
LinkliveMethodProtocol.h
– setReleaseEnv:
Change online environment,default is last choice.If called,as soon as possible.Other wise,it may cause data error
- (void)setReleaseEnv:(BOOL)isReleaseParameters
isRelease |
release environment |
|---|
Declared In
LiveMeSDK.m
– setEnableDataReport:
埋点
- (void)setEnableDataReport:(BOOL)enableDataReportDeclared In
LiveMeSDK.m
– setupTongDun
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
– initSDKWithAppid:appSecret:
Start LiveMe with your consumer secret.
- (void)initSDKWithAppid:(NSString *)appid appSecret:(NSString *)appSecretParameters
appid |
Your LiveMe application’s consumer appid. |
|---|---|
secret |
Your LiveMe application’s consumer secret.LM_STR_KEY_SHORTVIDEO_GIFT_BYTHANKS_BUTTON |
Declared In
LiveMeSDK.m
– onLoginSuccessWithOriginUid:openID:token:
Called when login LiveMe acount server successfully
- (void)onLoginSuccessWithOriginUid:(NSString *)originUid openID:(NSString *)openID token:(NSString *)tokenParameters
originUid |
origin user iid |
|---|---|
token |
LiveMe user token |
uid |
LiveMe user id |
Declared In
LiveMeSDK.m
– applicationWillTerminate:
Called in method applicationWillTerminate:
- (void)applicationWillTerminate:(UIApplication *)applicationParameters
application |
current application |
|---|
Declared In
LiveMeSDK.m
– didReceiveRemoteNotification:
Called when receiving a remote notification
- (void)didReceiveRemoteNotification:(NSDictionary *)userInfoParameters
userInfo |
Remote notification information |
|---|
Declared In
LiveMeSDK.m
– updateShopCartCount:
update shop cart count
- (void)updateShopCartCount:(NSInteger)countDeclared In
LinkliveMethodProtocol.h
– startWatchLive:
Start playing live video
- (void)startWatchLive:(id)videoInfoParameters
videoInfo |
Live video information |
|---|
Declared In
LiveMeSDK.m
– openUserHomePage:
Navigate to user home page
- (void)openUserHomePage:(NSString *)userIDParameters
userID |
user home page userid |
|---|
Declared In
LiveMeSDK.m
– showSdkHomePage:
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
LiveMeSDK.m
– openContributionRankPage
Navigate to contribution rank page
- (void)openContributionRankPageDeclared In
LiveMeSDK.m
– showLiveListFilter
Show filter panel to filter live list
- (void)showLiveListFilterDeclared In
LiveMeSDK.m
– routeWithURI:
Navigate to view controller by URI.
- (void)routeWithURI:(NSString *)uriParameters
uri |
url |
|---|
Declared In
LiveMeSDK.m
– getChatUnReadNum
unread message count return number
- (NSInteger)getChatUnReadNumDeclared In
LiveMeSDK.m
– fetchVideoListVC
Get video list view
- (UIViewController *)fetchVideoListVCDeclared In
LiveMeSDK.m
– deviceId
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
LiveMeSDK.m
– getOrderId:
Get Order ID
- (void)getOrderId:(void ( ^ ) ( NSString *lmOrderId ))callbackParameters
callback |
callback orderid |
|---|
Declared In
LiveMeSDK.m
– showUserAppealWithUid:type:warningMsg:
Show user appeal page
- (void)showUserAppealWithUid:(NSString *)uid type:(NSInteger)type warningMsg:(NSString *)warningMsgParameters
uid |
uid |
|---|---|
type |
type |
warningMsg |
warning msg |
Declared In
LiveMeSDK.m
– fetchVideoListData:gender:page:complete:
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
LiveMeSDK.m
– jumpToLiveRoomWithVid:
Jump to the live room of the specified vid
- (void)jumpToLiveRoomWithVid:(NSString *)vidParameters
vid |
vid |
|---|
Declared In
LiveMeSDK.m
– receiveInvalidToken:
收到失效token
- (void)receiveInvalidToken:(NSNotification *)notificationDeclared In
LiveMeSDK.m
– imStart:token:
im start
- (void)imStart:(NSString *)uid token:(NSString *)tokenDeclared In
LiveMeSDK.m
– _innerLoginSucceed:token:
登陆成功
- (void)_innerLoginSucceed:(NSString *)uid token:(NSString *)tokenDeclared In
LiveMeSDK.m
Extension Methods
featureRequest
请求
@property (nonatomic, strong) LMFeatureRequest *featureRequestDeclared In
LiveMeSDK.m
followRequest
请求
@property (nonatomic, strong) LMFollowRequest *followRequestDeclared In
LiveMeSDK.m