Agent.java 959 B

12345678910111213141516171819202122232425262728293031
  1. package com.uddream.plugin;
  2. import android.view.View;
  3. import android.widget.CompoundButton;
  4. import android.widget.Toast;
  5. /**
  6. * Created by Glen on 2017/2/8.
  7. */
  8. public class Agent {
  9. public static boolean isPluginEnable;
  10. public static String packageName;
  11. public static void onClickPre(View view) {
  12. Toast.makeText(view.getContext(), "agent click pre listener", Toast.LENGTH_LONG).show();
  13. }
  14. public static void onClick(View view) {
  15. Toast.makeText(view.getContext(), "agent click listener", Toast.LENGTH_LONG).show();
  16. }
  17. public static void onCheckedChangedPre(CompoundButton view, boolean isChecked) {
  18. Toast.makeText(view.getContext(), "agent check pre listener " + isChecked, Toast.LENGTH_LONG).show();
  19. }
  20. public static void onCheckedChanged(CompoundButton view, boolean isChecked) {
  21. Toast.makeText(view.getContext(), "agent check listener " + isChecked, Toast.LENGTH_LONG).show();
  22. }
  23. }