To use the AirWatch SDK copy restriction, replace the Android classes in your application to the listed Workspace ONE APIs.

Examples

If Java class XYZ extends TextView{...}, change it to extend AWTextView{...}.

If you override the method onTextContextMenuItem(int id), do not process the listed IDs. You must call return super.onTextContextMenuItem(id); for the listed IDs.

  • android.R.id.cut
  • android.R.id.copy
  • android.R.id.paste
  • android.R.id.shareText

Change <TextView> in all Layout XML or View XML to <com.airwatch.ui.widget.AWTextView.../>.

APIs

Android Class AirWatch SDK API

android.support.v7.widget.

AppCompatEditText

com.airwatch.ui.widget.

AWEditText

android.support.v7.widget.

AppCompatTextView

com.airwatch.ui.widget.

AWTextView

android.support.v7.widget.

AppCompatAutoCompleteTextView

com.airwatch.ui.widget.

AWAutoCompleteTextView

android.support.design.widget.

TextInputEditText

com.airwatch.ui.widget.

AWTextInputEditText

android.support.v7.widget.

SearchView.SearchAutoComplete

com.airwatch.ui.widget.

AWSearchAutoComplete

android.webkit.WebView com.airwatch.ui.widget.CopyEnabledWebView