Replace the Android classes in your application to the listed AirWatch APIs to use the AirWatch SDK copy restriction.

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 reutrn super.onTextContextMenuItem(id); for the listed IDs.

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

You must call reutrn super.onTextContextMenuItem(id); for the listed IDs.

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.widge.

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