Drag and drop policy API details
The drag and drop policy on the Ivanti server specifies whether AppConnect apps can drag content to all other apps, to only other AppConnect apps, or not at all.
The AppConnect library enforces this policy. When the policy allows dragging content to only other AppConnect apps, the AppConnect library notifies your app when the device user attempts to drag content to a non-AppConnect app. Your app can then notify the device user of the situation.
Drag and drop policy method
The AppConnect library enforces the Ivanti server’s drag and drop policy. Therefore, your app is not aware of the policy setting. Therefore, no enumeration describing the settings is necessary, and you do not have to handle the setting or changes to the setting in your app.
However, when the policy allows dragging content to only other AppConnect apps, a device user can still attempt to drag content to non-AppConnect apps. That attempt fails. In this situation, the AppConnect library calls a callback method.
You optionally implement this method, which is in the AppConnectDelegate protocol:
- (void)appConnectAttemptedDragAndDropToNonAppConnectApp:(AppConnect *)appConnect;
You can implement this method to alert the end user that dragging content to non-AppConnect apps is not allowed.
For example:
-(void) appConnect:(AppConnect *)appConnect appConnectAttemptedDragAndDropToNonAppConnectApp: { UIAlertView *alert = [[UIAlertView alloc] initWithTitle:@"Drag and drop not allowed" message:@"You are not allowed to drag content from this app to unsecured apps." delegate:nil cancelButtonTitle:@"OK" otherButtonTitles: nil]; [alert show]; }