Home | History | Annotate | Download | only in accounts
      1 /*
      2  * Copyright (C) 2014 The Android Open Source Project
      3  *
      4  * Licensed under the Apache License, Version 2.0 (the "License");
      5  * you may not use this file except in compliance with the License.
      6  * You may obtain a copy of the License at
      7  *
      8  *      http://www.apache.org/licenses/LICENSE-2.0
      9  *
     10  * Unless required by applicable law or agreed to in writing, software
     11  * distributed under the License is distributed on an "AS IS" BASIS,
     12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
     13  * See the License for the specific language governing permissions and
     14  * limitations under the License.
     15  */
     16 
     17 package com.android.inputmethod.latin.accounts;
     18 
     19 import android.content.Context;
     20 
     21 import javax.annotation.Nonnull;
     22 
     23 /**
     24  * Utility class for retrieving accounts that may be used for login.
     25  */
     26 public class LoginAccountUtils {
     27     /**
     28      * This defines the type of account this class deals with.
     29      * This account type is used when listing the accounts available on the device for login.
     30      */
     31     public static final String ACCOUNT_TYPE = "";
     32 
     33     private LoginAccountUtils() {
     34         // This utility class is not publicly instantiable.
     35     }
     36 
     37     /**
     38      * Get the accounts available for login.
     39      *
     40      * @return an array of accounts. Empty (never null) if no accounts are available for login.
     41      */
     42     @Nonnull
     43     @SuppressWarnings("unused")
     44     public static String[] getAccountsForLogin(final Context context) {
     45         return new String[0];
     46     }
     47 }
     48