Files
frameworks_base/telecomm/java/android/telecomm/Response.java
Ihab Awad 542e0ea8bf Publish new Telecomm API for Connection Services
Creates a new API for Connection Services providing phone connections to
the Android system. Supersedes CallService API, which will be gradually
replaced by this one.

Change-Id: Ie4b06c1b0843a777c5b8ee9c5dd12b9d9f990980
2014-05-18 18:58:28 -07:00

40 lines
1.1 KiB
Java

/*
* Copyright (C) 2014 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package android.telecomm;
/**
* Used to inform a client of asynchronously returned results.
*/
public interface Response<IN, OUT> {
/**
* Provide a set of results.
*
* @param request The original request.
* @param result The results.
*/
void onResult(IN request, OUT... result);
/**
* Indicates the inability to provide results.
*
* @param request The original request.
* @param reason The reason for the failure.
*/
void onError(IN request, String reason);
}