Code example for InputMethodInfo

Methods: getServiceInfo

0
            } 
        } 
    } 
 
    public static boolean isSystemIme(InputMethodInfo property) {
        return (property.getServiceInfo().applicationInfo.flags
                & ApplicationInfo.FLAG_SYSTEM) != 0;
    } 
 
    public static boolean isAuxiliaryIme(InputMethodInfo imi) {
        return imi.isAuxiliaryIme();
    } 
 
    public static boolean isAlwaysCheckedIme(InputMethodInfo imi, Context context, int imiCount) {
        if (imiCount <= 1) {
            return true; 
        } 
        if (!isSystemIme(imi)) {
            return false; 
        } 
        if (isAuxiliaryIme(imi)) {