Files
youle_app_ios/msext/Class/RootVC/Bridge.m
2023-12-27 20:38:37 +08:00

152 lines
3.0 KiB
Objective-C
Executable File
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
//
// 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