blob: 616562c3d1ab2a19cc053f607d939926b8ed1805 [file] [log] [blame]
Chiao Chengfed477c2012-12-04 17:40:46 -08001/*
2 * Copyright (C) 2010 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 */
Gary Mai69c182a2016-12-05 13:07:03 -080016package com.android.contacts.list;
Chiao Chengfed477c2012-12-04 17:40:46 -080017
18import android.app.ActionBar;
19import android.content.Intent;
20import android.net.Uri;
21
22/**
23 * Action callbacks that can be sent by a phone number picker.
24 */
25public interface OnPhoneNumberPickerActionListener {
Yorke Lee4ae9ca32015-09-15 12:53:37 -070026 public static final int CALL_INITIATION_UNKNOWN = 0;
Chiao Chengfed477c2012-12-04 17:40:46 -080027
28 /**
Anne Rongab739692015-09-29 15:16:30 -070029 * Returns the selected phone number uri to the requester.
Chiao Chengfed477c2012-12-04 17:40:46 -080030 */
Tyler Gunn001d9742015-12-18 13:57:02 -080031 void onPickDataUri(Uri dataUri, boolean isVideoCall, int callInitiationType);
Jay Shrauner138515a2013-07-26 09:32:27 -070032
Chiao Chengfed477c2012-12-04 17:40:46 -080033 /**
Anne Rongab739692015-09-29 15:16:30 -070034 * Returns the specified phone number to the requester.
35 * May call the specified phone number, either as an audio or video call.
Andrew Leede13cd92014-07-02 11:07:21 -070036 */
Anne Rongab739692015-09-29 15:16:30 -070037 void onPickPhoneNumber(String phoneNumber, boolean isVideoCall, int callInitiationType);
Andrew Leede13cd92014-07-02 11:07:21 -070038
39 /**
Chiao Chengfed477c2012-12-04 17:40:46 -080040 * Returns the selected number as a shortcut intent.
41 */
42 void onShortcutIntentCreated(Intent intent);
43
44 /**
45 * Called when home menu in {@link ActionBar} is clicked by the user.
46 */
47 void onHomeInActionBarSelected();
48}