java.lang.Object | |
↳ | chan.content.model.FileAttachment |
Model containing attached file data.
Use setFileUri(ChanLocator, Uri)
to store attachment file URI.
Use setThumbnailUri(ChanLocator, Uri)
to store attachment thumbnail URI.
If this file contains width, height or size data, you can use setWidth(int)
,
setHeight(int)
and setSize(int)
respectively to store them.
If this file is embedded frame like YouTube or Vocaroo, use EmbeddedAttachment
class.
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Returns attachment file URI. | |||||||||||
Returns file height in pixels. | |||||||||||
Returns original file name (file name before uploading). | |||||||||||
Returns file size in bytes. | |||||||||||
Returns attachment thumbnail URI. | |||||||||||
Returns file width in pixels. | |||||||||||
Returns whether file is spoiler. | |||||||||||
Encodes and stores attachment file URI in this model. | |||||||||||
Stores file height in this model. | |||||||||||
Stores original file name (file name before uploading) in this model. | |||||||||||
Stores file size in bytes in this model. | |||||||||||
Stores whether file is spoiler in this model. | |||||||||||
Encodes and stores attachment thumbnail URI in this model. | |||||||||||
Stores file width in this model. |
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
Returns attachment file URI.
Parameters | |
---|---|
locator |
ChanLocator :
ChanLocator instance to decode URI in model.
|
Returns | |
---|---|
Uri |
Returns file height in pixels.
Returns | |
---|---|
int |
Returns original file name (file name before uploading).
Returns | |
---|---|
String |
Returns file size in bytes.
Returns | |
---|---|
int |
Returns attachment thumbnail URI.
Parameters | |
---|---|
locator |
ChanLocator :
ChanLocator instance to decode URI in model.
|
Returns | |
---|---|
Uri |
Returns file width in pixels.
Returns | |
---|---|
int |
Returns whether file is spoiler.
Returns | |
---|---|
boolean |
Encodes and stores attachment file URI in this model.
Parameters | |
---|---|
locator |
ChanLocator :
ChanLocator instance to encode URI in model. |
fileUri |
Uri :
Attachment file URI. |
Returns | |
---|---|
FileAttachment |
This model. |
Stores file height in this model.
Parameters | |
---|---|
height |
int :
File height in pixels. |
Returns | |
---|---|
FileAttachment |
This model. |
Stores original file name (file name before uploading) in this model.
Parameters | |
---|---|
originalName |
String :
Original file name. |
Returns | |
---|---|
FileAttachment |
This model. |
Stores file size in bytes in this model.
Parameters | |
---|---|
size |
int :
File size in bytes. |
Returns | |
---|---|
FileAttachment |
This model. |
Stores whether file is spoiler in this model.
Parameters | |
---|---|
spoiler |
boolean :
True if file is spoiler, false otherwise. |
Returns | |
---|---|
FileAttachment |
This model. |
Encodes and stores attachment thumbnail URI in this model.
Parameters | |
---|---|
locator |
ChanLocator :
ChanLocator instance to encode URI in model. |
thumbnailUri |
Uri :
Attachment thumbnail URI. |
Returns | |
---|---|
FileAttachment |
This model. |
Stores file width in this model.
Parameters | |
---|---|
width |
int :
File width in pixels. |
Returns | |
---|---|
FileAttachment |
This model. |