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
-
-
-
Method Detail
-
setContentCaptureConditions
public void setContentCaptureConditions(Set<ContentCaptureCondition> contentCaptureConditions)
Configures the set ofContentCaptureCondition
that will be returned when callinggetContentCaptureConditions()
.
-
setServiceComponentName
public void setServiceComponentName(ComponentName serviceComponentName)
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
public void setShareDataParcelFileDescriptor(ParcelFileDescriptor parcelFileDescriptor)
Configures theParcelFileDescriptor
thatDataShareWriteAdapter.onWrite(ParcelFileDescriptor)
will receive on calls toshareData(DataShareRequest, Executor, DataShareWriteAdapter)
.
-
getContentCaptureConditions
@Implementation protected Set<ContentCaptureCondition> getContentCaptureConditions()
-
getServiceComponentName
@Implementation protected ComponentName getServiceComponentName()
-
isContentCaptureEnabled
@Implementation protected boolean isContentCaptureEnabled()
-
setContentCaptureEnabled
@Implementation protected void setContentCaptureEnabled(boolean enabled)
-
removeData
@Implementation protected void removeData(DataRemovalRequest request)
-
shareData
@Implementation(minSdk=30) protected void shareData(DataShareRequest request, Executor executor, DataShareWriteAdapter dataShareWriteAdapter)
-
-