java.lang.Object | |
↳ | com.sap.cloud.mobile.fiori.attachment.AttachmentAction |
![]() |
![]() |
An abstract class representing action to choose different types of attachments.
Structure
A String representing the name of the attachment action. This string is used, while generating the attachment action dialogue.
See setTitle(String)
.
An attachment formcell to which the AttachmentAction
object belongs to.
Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
String | ATTACH_ACTION_PERMISSIONS_REQ | ||||||||||
String | ATTACH_ACTION_PERMISSIONS_RESULT |
Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
protected boolean | isSelectMultiple | ||||||||||
protected AttachmentFormCell | mAttachmentFormCell | The attachment-form cell this action belongs to. |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
AttachmentAction(String title, AttachmentFormCell attachmentFormCell) |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
DialogInterface.OnDismissListener |
getDismissListener()
Get the action to be performed on dismissing the options
| ||||||||||
Drawable | getIcon() | ||||||||||
abstract Intent |
getSelectingIntent()
Get the intent to be used to perform the selection of the attachment items.
| ||||||||||
String |
getTitle()
Get the title of the action
| ||||||||||
boolean |
isAvailable()
Is this attachment action available for end user.
| ||||||||||
boolean |
isSelectMultiple()
Does this action provide multi select feature
| ||||||||||
abstract String[] |
requiredPermissions()
Get all the permission required to perform this attachment action
| ||||||||||
void |
setSelectMultiple(boolean selectMultiple)
Set the multiple select feature on this action
| ||||||||||
void |
setTitle(String title)
Set the title of the action
|
Protected Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
List<Uri> |
getAttachmentUris(Intent intent)
User provided mechanism to get the uri's from the intent.
| ||||||||||
List<IntentFilter> |
getIntentFilter()
Create the intent filters to be used to filter the broadcasts data received as response of this action
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
Get the action to be performed on dismissing the options
Get the intent to be used to perform the selection of the attachment items.
Is this attachment action available for end user.
Does this action provide multi select feature
Get all the permission required to perform this attachment action
Set the multiple select feature on this action
selectMultiple | boolean |
---|
User provided mechanism to get the uri's from the intent.
In some cases uris are stored as key-value pairs in bundles within the Intent. User can override this method to read data from bundle and provide the uris.
See:AttachmentActionTakePicture
intent | Intent |
---|
Create the intent filters to be used to filter the broadcasts data received as response of this action