CDVYHInterfaceDelegate.h 801 Bytes
//
//  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