CDVYHInterfaceDelegate.h
801 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
//
// CDVYHInterfaceDelegate.h
// YohoExplorerDemo
//
// Created by gaoqiang xu on 3/3/15.
// Copyright (c) 2015 gaoqiang xu. All rights reserved.
//
#import <Foundation/Foundation.h>
#import "YHLinkParserDelegate.h"
@class YHNative;
@protocol CDVYHInterfaceDelegate <NSObject>
@required
/**
* 解析链接
*
* @param linkUrl 链接url
*
* @return 解析是否成功
*/
- (BOOL)parseLink:(NSString *)linkUrl;
@optional
/**
* 本地机能是否可以被触发,默认是YES
*
* @param native YHNative对象
*/
- (BOOL)nativeActionShouldBegin:(YHNative *)native;
/**
* 本地机能调用结束
*
* @param native YHNative对象
* @param success 执行结果
*/
- (void)nativeAction:(YHNative *)native didEndWithResult:(BOOL)success userInfo:(NSDictionary *)userInfo;
@end