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
-
Method Summary
Modifier and TypeMethodDescriptionprotected Set<ContentCaptureCondition>
protected ComponentName
protected boolean
protected void
removeData
(DataRemovalRequest request) void
setContentCaptureConditions
(Set<ContentCaptureCondition> contentCaptureConditions) Configures the set ofContentCaptureCondition
that will be returned when callinggetContentCaptureConditions()
.protected void
setContentCaptureEnabled
(boolean enabled) void
setDataShareErrorCode
(int dataShareErrorCode) ConfiguresContentCaptureManager.DataShareError
to be raised on calls toshareData(DataShareRequest, Executor, DataShareWriteAdapter)
.void
setIsContentCaptureEnabled
(boolean isContentCaptureEnabled) Configures whetherisContentCaptureEnabled()
returns true or false.void
setServiceComponentName
(ComponentName serviceComponentName) Configures theComponentName
that will be returned when callinggetServiceComponentName()
.void
setShareDataParcelFileDescriptor
(ParcelFileDescriptor parcelFileDescriptor) Configures theParcelFileDescriptor
thatDataShareWriteAdapter.onWrite(ParcelFileDescriptor)
will receive on calls toshareData(DataShareRequest, Executor, DataShareWriteAdapter)
.void
setShouldRejectRequest
(boolean shouldRejectRequest) Configures whether or not to raise request rejection on calls toshareData(DataShareRequest, Executor, DataShareWriteAdapter)
.protected void
shareData
(DataShareRequest request, Executor executor, DataShareWriteAdapter dataShareWriteAdapter)
-
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. -
setShouldRejectRequest
public void setShouldRejectRequest(boolean shouldRejectRequest) Configures whether or not to raise request rejection on calls toshareData(DataShareRequest, Executor, DataShareWriteAdapter)
. -
getContentCaptureConditions
-
getServiceComponentName
-
isContentCaptureEnabled
-
setContentCaptureEnabled
-
removeData
-