public final class

TypePrecedence

extends Object
java.lang.Object
   ↳ com.android.contacts.TypePrecedence

This class is deprecated.
use getTypePrecedence(ContactsSource.DataKind, int) instead, since this list isn't Account based.

Class Overview

This class contains utility functions for determining the precedence of different types associated with contact data items.

Summary

Public Methods
static int getTypePrecedence(String mimetype, int type)
Returns the precedence (1 being the highest) of a type in the context of it's mimetype.
[Expand]
Inherited Methods
From class java.lang.Object

Public Methods

public static int getTypePrecedence (String mimetype, int type)

Returns the precedence (1 being the highest) of a type in the context of it's mimetype.

Parameters
mimetype The mimetype of the data with which the type is associated.
type The integer type as defined in {@Link ContactsContract#CommonDataKinds}.
Returns
  • The integer precedence, where 1 is the highest.