public static ActionMode StartActionMode(this ActionBar actionBar, ActionMode.ICallback mode)
        {
            var activity = actionBar.ThemedContext.GetActivity();

#if APPCOMPAT
            Should.BeOfType <AppCompatActivity>(activity, "Activity");
            return(((AppCompatActivity)activity).StartSupportActionMode(mode));
#else
            Should.NotBeNull(activity, "activity");
            return(activity.StartActionMode(mode));
#endif
        }
Ejemplo n.º 2
0
 public virtual ActionMode OnWindowStartingSupportActionMode(ActionMode.ICallback callback)
 {
     return(this.AppCompatDelegate.StartSupportActionMode(callback));
 }