Ben Gilad | 03a533a | 2013-08-21 09:46:00 -0700 | [diff] [blame] | 1 | // Copyright 2013 Google Inc. All Rights Reserved. |
| 2 | |
Gary Mai | 69c182a | 2016-12-05 13:07:03 -0800 | [diff] [blame] | 3 | package com.android.contacts.extensions; |
Ben Gilad | 03a533a | 2013-08-21 09:46:00 -0700 | [diff] [blame] | 4 | |
| 5 | import android.content.Context; |
| 6 | |
Gary Mai | 69c182a | 2016-12-05 13:07:03 -0800 | [diff] [blame] | 7 | import com.android.contacts.list.DirectoryPartition; |
Ben Gilad | 03a533a | 2013-08-21 09:46:00 -0700 | [diff] [blame] | 8 | |
| 9 | import java.util.List; |
| 10 | |
| 11 | /** |
| 12 | * An interface for adding extended phone directories to |
Gary Mai | 69c182a | 2016-12-05 13:07:03 -0800 | [diff] [blame] | 13 | * {@link com.android.contacts.list.PhoneNumberListAdapter}. |
Ben Gilad | 03a533a | 2013-08-21 09:46:00 -0700 | [diff] [blame] | 14 | * 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 Mai | 69c182a | 2016-12-05 13:07:03 -0800 | [diff] [blame] | 17 | * {@link com.android.contacts.list.PhoneNumberListAdapter}. |
Ben Gilad | 03a533a | 2013-08-21 09:46:00 -0700 | [diff] [blame] | 18 | */ |
| 19 | public 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 | } |