Toggle navigation
Toggle navigation
This project
Loading...
Sign in
flutter_package
/
dart_pdf
Go to a project
Toggle navigation
Projects
Groups
Snippets
Help
Toggle navigation pinning
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Authored by
David PHAM-VAN
2019-04-11 07:35:19 -0400
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
59c80708950366f2f7884cdfdec93f48f5e46075
59c80708
1 parent
3a91f21a
Apply SwiftFormat version 0.40.5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
printing/ios/Classes/SwiftPrintingPlugin.swift
printing/ios/Classes/SwiftPrintingPlugin.swift
View file @
59c8070
...
...
@@ -35,15 +35,15 @@ public class SwiftPrintingPlugin: NSObject, FlutterPlugin, UIPrintInteractionCon
public
func
handle
(
_
call
:
FlutterMethodCall
,
result
:
FlutterResult
)
{
let
args
=
call
.
arguments
!
as!
[
String
:
Any
]
if
"printPdf"
==
call
.
method
{
if
call
.
method
==
"printPdf"
{
printPdf
(
args
[
"name"
]
as?
String
??
""
)
result
(
NSNumber
(
value
:
1
))
}
else
if
"writePdf"
==
call
.
method
{
}
else
if
call
.
method
==
"writePdf"
{
if
let
object
=
args
[
"doc"
]
as?
FlutterStandardTypedData
{
writePdf
(
object
)
}
result
(
NSNumber
(
value
:
1
))
}
else
if
"sharePdf"
==
call
.
method
{
}
else
if
call
.
method
==
"sharePdf"
{
if
let
object
=
args
[
"doc"
]
as?
FlutterStandardTypedData
{
sharePdf
(
object
,
...
...
Please
register
or
login
to post a comment