belongs to Maven artifact com.android.support:support-compat:28.0.0-alpha1
InputContentInfoCompat
  public
  
  final
  
  class
  InputContentInfoCompat
  
    extends Object
  
  
  
  
  
  
| java.lang.Object | |
| ↳ | android.support.v13.view.inputmethod.InputContentInfoCompat | 
Helper for accessing features in InputContentInfo introduced after API level 13 in a backwards compatible fashion.
Summary
| Public constructors | |
|---|---|
| 
      InputContentInfoCompat(Uri contentUri, ClipDescription description, Uri linkUri)
      Constructs  | |
| Public methods | |
|---|---|
| 
        
        
        
        
        
        Uri | 
      getContentUri()
       | 
| 
        
        
        
        
        
        ClipDescription | 
      getDescription()
       | 
| 
        
        
        
        
        
        Uri | 
      getLinkUri()
       | 
| 
        
        
        
        
        
        void | 
      releasePermission()
      Releases a temporary read-only access permission for content URI associated with this object. | 
| 
        
        
        
        
        
        void | 
      requestPermission()
      Requests a temporary read-only access permission for content URI associated with this object. | 
| 
        
        
        
        
        
        Object | 
      unwrap()
      Gets the underlying framework android.view.inputmethod.InputContentInfo object. | 
| 
        
        
        static
        
        
        InputContentInfoCompat | 
      wrap(Object inputContentInfo)
      Creates an instance from a framework android.view.inputmethod.InputContentInfo object. | 
| Inherited methods | |
|---|---|
|  From
class 
  
    java.lang.Object
  
 | |
Public constructors
InputContentInfoCompat
InputContentInfoCompat (Uri contentUri, ClipDescription description, Uri linkUri)
Constructs InputContentInfoCompat.
| Parameters | |
|---|---|
| contentUri | Uri: content URI to be exported from the input method. This cannot benull. | 
| description | ClipDescription: aClipDescriptionobject that contains the metadata ofcontentUrisuch as MIME type(s). This object cannot benull. AlsogetLabel()should be describing
                    the content specified bycontentUrifor accessibility reasons. | 
| linkUri | Uri: an optionalhttporhttpsURI. The editor author may provide
                a way to navigate the user to the specified web page if this is notnull. | 
Public methods
getContentUri
Uri getContentUri ()
| Returns | |
|---|---|
| Uri | content URI with which the content can be obtained. | 
getDescription
ClipDescription getDescription ()
| Returns | |
|---|---|
| ClipDescription | ClipDescriptionobject that contains the metadata of#getContentUri()such as MIME type(s).getLabel()can be used for accessibility
 purpose. | 
getLinkUri
Uri getLinkUri ()
| Returns | |
|---|---|
| Uri | an optional httporhttpsURI that is related to this content. | 
releasePermission
void releasePermission ()
Releases a temporary read-only access permission for content URI associated with this object.
Does nothing if the temporary permission is not granted.
requestPermission
void requestPermission ()
Requests a temporary read-only access permission for content URI associated with this object.
Does nothing if the temporary permission is already granted.
unwrap
Object unwrap ()
Gets the underlying framework android.view.inputmethod.InputContentInfo object.
This method always returns null on API <= 24.
| Returns | |
|---|---|
| Object | an equivalent android.view.inputmethod.InputContentInfo object, or nullif
 not supported. | 
wrap
InputContentInfoCompat wrap (Object inputContentInfo)
Creates an instance from a framework android.view.inputmethod.InputContentInfo object.
This method always returns null on API <= 24.
| Parameters | |
|---|---|
| inputContentInfo | Object: an android.view.inputmethod.InputContentInfo object, ornullif none. | 
| Returns | |
|---|---|
| InputContentInfoCompat | an equivalent InputContentInfoCompatobject, ornullif not
 supported. | 
