add .gitignore
This commit is contained in:
151
msext/Class/RootVC/Bridge.m
Executable file
151
msext/Class/RootVC/Bridge.m
Executable file
@@ -0,0 +1,151 @@
|
||||
//
|
||||
// Bridge.m
|
||||
// JS_OC_Call
|
||||
// ios大师群:150245203,欢迎您的加入
|
||||
// Created by 亮亮 on 16/9/7.
|
||||
// Copyright © 2016年 钱袋宝. All rights reserved.
|
||||
//
|
||||
|
||||
#import "Bridge.h"
|
||||
#import "AppDelegate.h"
|
||||
@implementation Bridge
|
||||
@synthesize delegate;
|
||||
//一下方法都是只是打了个log 等会看log 以及参数能对上就说明js调用了此处的iOS 原生方法
|
||||
|
||||
-(int)getnetwork
|
||||
{
|
||||
return [delegate getnetwork];
|
||||
}
|
||||
-(void)startshake
|
||||
{
|
||||
|
||||
return [delegate startshake];
|
||||
}
|
||||
-(void)stopshake
|
||||
{
|
||||
|
||||
return [delegate stopshake];
|
||||
}
|
||||
-(int)getcompareCode
|
||||
{
|
||||
|
||||
return [delegate getcompareCode];
|
||||
}
|
||||
-(NSString *)getchannelName
|
||||
{
|
||||
return [delegate getchannelName];
|
||||
}
|
||||
-(double)getbattery
|
||||
{
|
||||
return [delegate getbattery];
|
||||
|
||||
}
|
||||
-(void)vibrator:(NSString *)time
|
||||
{
|
||||
|
||||
[delegate vibrator:time];
|
||||
}
|
||||
-(void)repeatvibrator:(NSString *)repeat
|
||||
{
|
||||
|
||||
[delegate repeatvibrator:repeat];
|
||||
}
|
||||
-(void)canclevibrator
|
||||
{
|
||||
|
||||
[self.delegate canclevibrator];
|
||||
}
|
||||
|
||||
-(void)media:(NSString *)url Type:(NSString *)history Audio:(NSString *)userid
|
||||
{
|
||||
|
||||
[self.delegate media:url Type:history Audio:userid ];
|
||||
}
|
||||
|
||||
-(void)SwitchShake:(NSString *)voice
|
||||
{
|
||||
[self.delegate SwitchShake:voice];
|
||||
|
||||
|
||||
}
|
||||
-(void)browser:(NSString *)url
|
||||
{
|
||||
[self.delegate browser:url];
|
||||
}
|
||||
|
||||
-(void)prepareaudio
|
||||
{
|
||||
[self.delegate prepareaudio];
|
||||
}
|
||||
-(void)accreditlogin
|
||||
{
|
||||
[self.delegate accreditlogin];
|
||||
}
|
||||
-(void)friends:(NSString *)one Sharetype:(NSString *)two Url:(NSString *)three Toptitle:(NSString *)four Descript:(NSString *)five
|
||||
{
|
||||
// [self.delegate sharefriend:one type:two webpageUrl:three title:four description:five];
|
||||
[self.delegate friends:one Sharetype:two Url:three Toptitle:four Descript:five];
|
||||
}
|
||||
|
||||
-(void)src:(NSString *)message Isloop:(NSString *)message2
|
||||
{
|
||||
[self.delegate src:message Isloop:message2];
|
||||
}
|
||||
-(void)opensaoma;
|
||||
{
|
||||
[self.delegate opensaoma];
|
||||
}
|
||||
-(void)startlocation:(NSString *)Type
|
||||
{
|
||||
[self.delegate startlocation:Type];
|
||||
}
|
||||
-(void)Switch:(NSString *)type Over:(NSString *)directory Game:(NSString *)downurl Data:(NSString *)data
|
||||
{
|
||||
[self.delegate Switch:type Over:directory Game:downurl Data:data];
|
||||
}
|
||||
-(void)backgameData:(NSString *)data
|
||||
{
|
||||
[self.delegate backgameData:data];
|
||||
}
|
||||
-(int)getGameinstall:(NSString *)gamename
|
||||
{
|
||||
return [self.delegate getGameinstall:gamename];
|
||||
|
||||
}
|
||||
-(void)getGameplay:(NSString *)jsondata
|
||||
{
|
||||
[self.delegate getGameplay:jsondata];
|
||||
}
|
||||
-(void)Openurl:(NSString *)url Title:(NSString *)title Data:(NSString *)data
|
||||
{
|
||||
[self.delegate Openurl:url Title:title Data:data];
|
||||
}
|
||||
-(NSString *)getmarketname
|
||||
{
|
||||
return [self.delegate getmarketname];
|
||||
}
|
||||
-(NSString *)gamepastetext
|
||||
{
|
||||
return [self.delegate gamepastetext];
|
||||
}
|
||||
-(void)gameCopytext:(NSString *)text
|
||||
{
|
||||
[self.delegate gameCopytext:text];
|
||||
}
|
||||
-(NSString *)getOther
|
||||
{
|
||||
return [self.delegate getOther];
|
||||
}
|
||||
-(NSString *)getothername:(NSString *)othername
|
||||
{
|
||||
return [self.delegate getothername:othername];
|
||||
}
|
||||
-(void)voicePlaying:(NSString *)type
|
||||
{
|
||||
[self.delegate voicePlaying:type];
|
||||
}
|
||||
-(void)finishweb
|
||||
{
|
||||
[self.delegate finishweb];
|
||||
}
|
||||
@end
|
||||
Reference in New Issue
Block a user