public class PKPassTemplateInMemory extends Object implements IPKPassTemplate
| Modifier and Type | Field and Description |
|---|---|
static String |
PK_BACKGROUND |
static String |
PK_BACKGROUND_RETINA |
static String |
PK_BACKGROUND_RETINAHD |
static String |
PK_FOOTER |
static String |
PK_FOOTER_RETINA |
static String |
PK_FOOTER_RETINAHD |
static String |
PK_ICON |
static String |
PK_ICON_RETINA |
static String |
PK_ICON_RETINAHD |
static String |
PK_LOGO |
static String |
PK_LOGO_RETINA |
static String |
PK_LOGO_RETINAHD |
static String |
PK_PERSONALIZATION_LOGO |
static String |
PK_PERSONALIZATION_LOGO_RETINA |
static String |
PK_PERSONALIZATION_LOGO_RETINAHD |
static String |
PK_STRIP |
static String |
PK_STRIP_RETINA |
static String |
PK_STRIP_RETINAHD |
static String |
PK_THUMBNAIL |
static String |
PK_THUMBNAIL_RETINA |
static String |
PK_THUMBNAIL_RETINAHD |
| Constructor and Description |
|---|
PKPassTemplateInMemory() |
| Modifier and Type | Method and Description |
|---|---|
void |
addAllFiles(String directoryWithFilesToAdd) |
void |
addFile(String pathInTemplate,
CharSequence content) |
void |
addFile(String pathInTemplate,
File file) |
void |
addFile(String pathInTemplate,
InputStream stream) |
void |
addFile(String pathInTemplate,
Locale locale,
CharSequence content) |
void |
addFile(String pathInTemplate,
Locale locale,
File file) |
void |
addFile(String pathInTemplate,
Locale locale,
InputStream stream) |
void |
addFile(String pathInTemplate,
Locale locale,
URL contentURL) |
void |
addFile(String pathInTemplate,
URL contentURL) |
Map<String,ByteBuffer> |
getAllFiles() |
Map<String,InputStream> |
getFiles()
Deprecated.
|
void |
provisionPassAtDirectory(File tempPassDir)
Prepare pass at directory with files included in this template
|
public static final String PK_ICON_RETINAHD
public static final String PK_ICON_RETINA
public static final String PK_ICON
public static final String PK_LOGO_RETINAHD
public static final String PK_LOGO_RETINA
public static final String PK_LOGO
public static final String PK_THUMBNAIL_RETINAHD
public static final String PK_THUMBNAIL_RETINA
public static final String PK_THUMBNAIL
public static final String PK_STRIP_RETINAHD
public static final String PK_STRIP_RETINA
public static final String PK_STRIP
public static final String PK_BACKGROUND_RETINAHD
public static final String PK_BACKGROUND_RETINA
public static final String PK_BACKGROUND
public static final String PK_FOOTER_RETINAHD
public static final String PK_FOOTER_RETINA
public static final String PK_FOOTER
public static final String PK_PERSONALIZATION_LOGO_RETINAHD
public static final String PK_PERSONALIZATION_LOGO_RETINA
public static final String PK_PERSONALIZATION_LOGO
public void provisionPassAtDirectory(File tempPassDir) throws IOException
IPKPassTemplateprovisionPassAtDirectory in interface IPKPassTemplatetempPassDir - path to directory where temporary pass will be createdIOException - if anything goes wrong while copying the filespublic Map<String,ByteBuffer> getAllFiles()
getAllFiles in interface IPKPassTemplatepublic void addFile(String pathInTemplate, InputStream stream) throws IOException
IOExceptionpublic void addFile(String pathInTemplate, File file) throws IOException
IOExceptionpublic void addFile(String pathInTemplate, CharSequence content) throws IOException
IOExceptionpublic void addFile(String pathInTemplate, URL contentURL) throws IOException
IOExceptionpublic void addFile(String pathInTemplate, Locale locale, File file) throws IOException
IOExceptionpublic void addFile(String pathInTemplate, Locale locale, InputStream stream) throws IOException
IOExceptionpublic void addFile(String pathInTemplate, Locale locale, CharSequence content) throws IOException
IOExceptionpublic void addFile(String pathInTemplate, Locale locale, URL contentURL) throws IOException
IOExceptionpublic void addAllFiles(String directoryWithFilesToAdd) throws IOException
IOException@Deprecated public Map<String,InputStream> getFiles()
Copyright © 2012–2022. All rights reserved.