Package org.robolectric.shadows
Class ShadowContentCaptureManager
java.lang.Object
org.robolectric.shadows.ShadowContentCaptureManager
@Implements(value=android.view.contentcapture.ContentCaptureManager.class, minSdk=29, isInAndroidSdk=false) public class ShadowContentCaptureManager extends Object
A Shadow for android.view.contentcapture.ContentCaptureManager added in Android R.
-
Constructor Summary
Constructors Constructor Description ShadowContentCaptureManager()
-
Method Summary
-
Constructor Details
-
ShadowContentCaptureManager
public ShadowContentCaptureManager()
-
-
Method Details
-
setContentCaptureConditions
Configures the set ofContentCaptureCondition
that will be returned when callinggetContentCaptureConditions()
. -
setServiceComponentName
Configures theComponentName
that will be returned when callinggetServiceComponentName()
. -
setIsContentCaptureEnabled
public void setIsContentCaptureEnabled(boolean isContentCaptureEnabled)Configures whetherisContentCaptureEnabled()
returns true or false. -
setDataShareErrorCode
public void setDataShareErrorCode(int dataShareErrorCode)ConfiguresContentCaptureManager.DataShareError
to be raised on calls toshareData(DataShareRequest, Executor, DataShareWriteAdapter)
. -
setShouldRejectRequest
public void setShouldRejectRequest(boolean shouldRejectRequest)Configures whether or not to raise request rejection on calls toshareData(DataShareRequest, Executor, DataShareWriteAdapter)
. -
setShareDataParcelFileDescriptor
Configures theParcelFileDescriptor
thatDataShareWriteAdapter.onWrite(ParcelFileDescriptor)
will receive on calls toshareData(DataShareRequest, Executor, DataShareWriteAdapter)
. -
getContentCaptureConditions
-
getServiceComponentName
-
isContentCaptureEnabled
-
setContentCaptureEnabled
-
removeData
-
shareData
@Implementation(minSdk=30) protected void shareData(DataShareRequest request, Executor executor, DataShareWriteAdapter dataShareWriteAdapter)
-