mirror of
https://github.com/purplecabbage/phonegap-plugins.git
synced 2026-01-15 01:08:17 -05:00
44 lines
1000 B
Objective-C
44 lines
1000 B
Objective-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>
|
|
|
|
#ifdef PHONEGAP_FRAMEWORK
|
|
#import <PhoneGap/PGPlugin.h>
|
|
#else
|
|
#import "PGPlugin.h"
|
|
#endif
|
|
|
|
|
|
@interface PrintPlugin : PGPlugin {
|
|
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
|