java.lang.Object | ||
↳ | android.content.ContentProvider | |
↳ | com.microsoft.intune.mam.client.content.MAMContentProvider |
MAM version of ContentProvider.
[Expand]
Inherited Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
MAMContentProvider()
Constructor.
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
final ContentProviderResult[] | applyBatch(ArrayList<ContentProviderOperation> operations) | ||||||||||
final ContentProviderResult[] | applyBatch(String authority, ArrayList<ContentProviderOperation> operations) | ||||||||||
ContentProviderResult[] | applyBatchMAM(String authority, ArrayList<ContentProviderOperation> operations) | ||||||||||
ContentProviderResult[] | applyBatchMAM(ArrayList<ContentProviderOperation> operations) | ||||||||||
void | attachInfo(Context context, ProviderInfo info) | ||||||||||
void | attachInfoMAM(Context context, ProviderInfo info) | ||||||||||
final int | bulkInsert(Uri uri, ContentValues[] values) | ||||||||||
int | bulkInsertMAM(Uri uri, ContentValues[] values) | ||||||||||
final Bundle | call(String authority, String method, String arg, Bundle extras) | ||||||||||
final Bundle | call(String method, String arg, Bundle extras) | ||||||||||
Bundle | callMAM(String authority, String method, String arg, Bundle extras) | ||||||||||
Bundle | callMAM(String method, String arg, Bundle extras) | ||||||||||
final int | delete(Uri uri, String selection, String[] selectionArgs) | ||||||||||
final int | delete(Uri uri, Bundle extras) | ||||||||||
int | deleteMAM(Uri uri, Bundle extras) | ||||||||||
final Uri | insert(Uri uri, ContentValues values, Bundle extras) | ||||||||||
final Uri | insert(Uri uri, ContentValues values) | ||||||||||
Uri | insertMAM(Uri uri, ContentValues values, Bundle extras) | ||||||||||
final boolean |
isProvideContentAllowed(String contentIdentity)
A multi-identity aware app MUST use this method to determine whether policy allows sharing of content to another app.
| ||||||||||
static boolean |
isProvideContentAllowed(ContentProvider provider, String contentIdentity)
Like the instance-method isProvideContentAllowed above, but static.
| ||||||||||
void |
onMAMIdentitySwitchRequired(String identity, AppIdentitySwitchResultCallback callback)
Called by MAM to notify the app that an incoming intent requires a temporary identity switch on this thread.
| ||||||||||
final AssetFileDescriptor | openAssetFile(Uri uri, String mode, CancellationSignal signal) | ||||||||||
final AssetFileDescriptor | openAssetFile(Uri uri, String mode) | ||||||||||
AssetFileDescriptor | openAssetFileMAM(Uri uri, String mode, CancellationSignal signal) | ||||||||||
AssetFileDescriptor | openAssetFileMAM(Uri uri, String mode) | ||||||||||
final ParcelFileDescriptor | openFile(Uri uri, String mode, CancellationSignal signal) | ||||||||||
final ParcelFileDescriptor | openFile(Uri uri, String mode) | ||||||||||
ParcelFileDescriptor | openFileMAM(Uri uri, String mode) | ||||||||||
ParcelFileDescriptor | openFileMAM(Uri uri, String mode, CancellationSignal signal) | ||||||||||
final AssetFileDescriptor | openTypedAssetFile(Uri uri, String mimeTypeFilter, Bundle opts) | ||||||||||
final AssetFileDescriptor | openTypedAssetFile(Uri uri, String mimeTypeFilter, Bundle opts, CancellationSignal signal) | ||||||||||
AssetFileDescriptor | openTypedAssetFileMAM(Uri uri, String mimeTypeFilter, Bundle opts) | ||||||||||
AssetFileDescriptor | openTypedAssetFileMAM(Uri uri, String mimeTypeFilter, Bundle opts, CancellationSignal signal) | ||||||||||
final Cursor | query(Uri uri, String[] projection, Bundle queryArgs, CancellationSignal cancellationSignal) | ||||||||||
final Cursor | query(Uri uri, String[] projection, String selection, String[] selectionArgs, String sortOrder, CancellationSignal cancellationSignal) | ||||||||||
final Cursor | query(Uri uri, String[] projection, String selection, String[] selectionArgs, String sortOrder) | ||||||||||
Cursor | queryMAM(Uri uri, String[] projection, String selection, String[] selectionArgs, String sortOrder, CancellationSignal cancellationSignal) | ||||||||||
Cursor | queryMAM(Uri uri, String[] projection, Bundle queryArgs, CancellationSignal cancellationSignal) | ||||||||||
final int | update(Uri uri, ContentValues values, Bundle extras) | ||||||||||
final int | update(Uri uri, ContentValues values, String selection, String[] selectionArgs) | ||||||||||
int | updateMAM(Uri uri, ContentValues values, Bundle extras) |
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() | |||||||||||
![]() | |||||||||||
![]() | |||||||||||
![]() | |||||||||||
![]() | |||||||||||
![]() |
Constructor.
OperationApplicationException |
---|
OperationApplicationException |
---|
OperationApplicationException |
---|
OperationApplicationException |
---|
A multi-identity aware app MUST use this method to determine whether policy allows sharing of content to another app. This method may be called only from the implementation of a MAMContentProvider method (callqueryMAM, callMAM, etc). It allows the app to determine whether the content it is about to return to the app which invoked the content provider is allowed to be provided. If this method returns false, the content must not be provided. It is not necessary to use this method for content which can never contain corporate data. It is also not necessary to use this method when returning a ParcelFileDescriptor through openFileMAM, openAssetFileMAM, or openTypedAssetFileMAM as the underlying file is required to already be tagged with the correct identity.
contentIdentity | UPN representing the owner of the content. |
---|
Like the instance-method isProvideContentAllowed above, but static. Allows usage of isProvideContentAllowed from a ContentProvider which is intended to be processed by the MAM build plugin rather than inheriting MAMContentProvider in source.
provider | provider to use for the check |
---|---|
contentIdentity | UPN representing the owner of the content. |
Called by MAM to notify the app that an incoming intent requires a temporary identity switch on this thread. The application
must call callback.reportIdentitySwitchResult
to tell MAM whether the identity switch is allowed. In general,
applications should allow identity switches. The default implementation allows all identity switches.
Service calls will block until the callback is made. For services which run on the UI thread, the callback must be made
before this function returns, otherwise the application will be nonresponsive. If a FAILED result is reported,
then the service operation that initiated the identity switch will be cancelled.
Activities should instead override the three-argument version of this method from
MAMActivityIdentityRequirementListener
.
identity | identity being switched to |
---|---|
callback | must be called to notify MAM whether to allow the switch. |
FileNotFoundException |
---|
FileNotFoundException |
---|
FileNotFoundException |
---|
FileNotFoundException |
---|
FileNotFoundException |
---|
FileNotFoundException |
---|
FileNotFoundException |
---|
FileNotFoundException |
---|
FileNotFoundException |
---|
FileNotFoundException |
---|
FileNotFoundException |
---|
FileNotFoundException |
---|