39 lines
939 B
C
39 lines
939 B
C
|
//
|
||
|
// PrintPlugin.h
|
||
|
// Print Plugin
|
||
|
//
|
||
|
// Created by Ian Tipton (github.com/itip) on 02/07/2011.
|
||
|
// Copyright 2011 Ian Tipton. All rights reserved.
|
||
|
// MIT licensed
|
||
|
//
|
||
|
|
||
|
#import <Foundation/Foundation.h>
|
||
|
#import <Cordova/CDVPlugin.h>
|
||
|
|
||
|
|
||
|
@interface CDVPrinter : CDVPlugin {
|
||
|
NSString* successCallback;
|
||
|
NSString* failCallback;
|
||
|
NSString* printHTML;
|
||
|
|
||
|
//Options
|
||
|
NSInteger dialogLeftPos;
|
||
|
NSInteger dialogTopPos;
|
||
|
}
|
||
|
|
||
|
@property (nonatomic, copy) NSString* successCallback;
|
||
|
@property (nonatomic, copy) NSString* failCallback;
|
||
|
@property (nonatomic, copy) NSString* printHTML;
|
||
|
|
||
|
//Print Settings
|
||
|
@property NSInteger dialogLeftPos;
|
||
|
@property NSInteger dialogTopPos;
|
||
|
|
||
|
//Print HTML
|
||
|
- (void) print:(NSMutableArray*)arguments withDict:(NSMutableDictionary*)options;
|
||
|
|
||
|
//Find out whether printing is supported on this platform.
|
||
|
- (void) isPrintingAvailable:(NSMutableArray*)arguments withDict:(NSMutableDictionary*)options;
|
||
|
|
||
|
@end
|