ContentDataSource

public interface ContentDataSource

ContentDataSource provide an interface to allow the host application to provide an attachment as a ContentDescriptor to the SDK for uploading to the chat thread.

Functions

Link copied to clipboard
public Boolean acceptsMimeType(String mimeType)

test if a given mime type is acceptable to this data source.

Link copied to clipboard
public abstract ContentDescriptor descriptorForUri(Uri attachmentUri)

fetch the details (primarily the content) of a content URI for an attachment.

Link copied to clipboard
public abstract Regex getAcceptRegex()

Regex describing content types this data source can handle.