public class

AttachmentActionTakePicture

extends AttachmentAction
java.lang.Object
   ↳ com.sap.cloud.mobile.fiori.attachment.AttachmentAction
     ↳ com.sap.cloud.mobile.fiori.attachment.actions.AttachmentActionTakePicture

Class Overview

A concrete class for making attachments by taking pictures using camera.

Structure

  • Authority
  • Capturing image requires saving the image to file and then using the URI into Attachment, which requires the Authority of FileProvider. See FileProvider.

  • File Path
  • Uri of the captured image.

    See AttachmentAction

Summary

[Expand]
Inherited Constants
From class com.sap.cloud.mobile.fiori.attachment.AttachmentAction
[Expand]
Inherited Fields
From class com.sap.cloud.mobile.fiori.attachment.AttachmentAction
Public Constructors
AttachmentActionTakePicture(AttachmentFormCell cell, String authority)
AttachmentActionTakePicture(String title, AttachmentFormCell attachmentFormCell, String authority)
Public Methods
List<Uri> getAttachmentUris(Intent intent)
Return the Uri of the Capture image file
Drawable getIcon()
Intent getSelectingIntent()
Get the intent to be make attachments using camera.
String[] requiredPermissions()
Get the required permissions
[Expand]
Inherited Methods
From class com.sap.cloud.mobile.fiori.attachment.AttachmentAction
From class java.lang.Object

Public Constructors

public AttachmentActionTakePicture (AttachmentFormCell cell, String authority)

public AttachmentActionTakePicture (String title, AttachmentFormCell attachmentFormCell, String authority)

Public Methods

public List<Uri> getAttachmentUris (Intent intent)

Return the Uri of the Capture image file

Parameters
intent Intent
Returns
  • List of uris

public Drawable getIcon ()

public Intent getSelectingIntent ()

Get the intent to be make attachments using camera.

Returns
  • Intent

public String[] requiredPermissions ()

Get the required permissions

Returns
  • array of String representing the permissions required to use this facility