blob: 2ee0eaeafc2fb74bb0fb02cf5eccd0c130e16e5c [file] [log] [blame]
Ben Gilad03a533a2013-08-21 09:46:00 -07001// Copyright 2013 Google Inc. All Rights Reserved.
2
Gary Mai69c182a2016-12-05 13:07:03 -08003package com.android.contacts.extensions;
Ben Gilad03a533a2013-08-21 09:46:00 -07004
5import android.content.Context;
6
Gary Mai69c182a2016-12-05 13:07:03 -08007import com.android.contacts.list.DirectoryPartition;
Ben Gilad03a533a2013-08-21 09:46:00 -07008
9import java.util.List;
10
11/**
12 * An interface for adding extended phone directories to
Gary Mai69c182a2016-12-05 13:07:03 -080013 * {@link com.android.contacts.list.PhoneNumberListAdapter}.
Ben Gilad03a533a2013-08-21 09:46:00 -070014 * An app that wishes to add custom phone directories should implement this class and advertise it
15 * in assets/contacts_extensions.properties. {@link ExtensionsFactory} will load the implementation
16 * and the extended directories will be added by
Gary Mai69c182a2016-12-05 13:07:03 -080017 * {@link com.android.contacts.list.PhoneNumberListAdapter}.
Ben Gilad03a533a2013-08-21 09:46:00 -070018 */
19public interface ExtendedPhoneDirectoriesManager {
20
21 /**
22 * Return a list of extended directories to add. May return null if no directories are to be
23 * added.
24 */
25 List<DirectoryPartition> getExtendedDirectories(Context context);
26}