|
//
// IPUPlugin.h
// IPUMobile
//
// Created by 秋林 on 2019/1/15.
// Copyright © 2019 Asiainfo. All rights reserved.
//
#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>
#import "IPUMobileDelegate.h"
@protocol IPUPluginProtocol;
@class IPUMobileWebView;
@interface IPUPlugin : NSObject <IPUPluginProtocol>
@property (nonatomic, weak) id <IPUMobileDelegate> mobileDelegate;
@property (nonatomic, copy) NSString *callback;
- (void)executeJs:(NSString *)code;
- (void)callback:(NSString *)result;
- (void)callback:(NSString *)result isEncode:(BOOL)isEncode;
- (void)error:(NSString *)message;
- (IPUMobileWebView *)getWebView IPU_API_DEPRECATED("use [self.mobileDelegate getCurrentView] instead");
- (UIViewController *)getViewController;
@end
|