CDVYHInterfaceDelegate.h 653 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
/**
 *  本地机能调用结束
 *
 *  @param userInfo
 *  @param completion 执行结果
 */
- (void)nativeActionDidTriggerEventWithUserInfo:(NSDictionary *)userInfo completion:(void (^) (id, BOOL))completion;

@end