blob: afa99bc5528d9e18875ddc67bc91edf46c97208b [file] [log] [blame]
henrike@webrtc.org28e20752013-07-10 00:45:36 +00001/*
kjellanderb24317b2016-02-10 07:54:43 -08002 * Copyright 2013 The WebRTC project authors. All Rights Reserved.
henrike@webrtc.org28e20752013-07-10 00:45:36 +00003 *
kjellanderb24317b2016-02-10 07:54:43 -08004 * Use of this source code is governed by a BSD-style license
5 * that can be found in the LICENSE file in the root of the source
6 * tree. An additional intellectual property rights grant can be found
7 * in the file PATENTS. All contributing project authors may
8 * be found in the AUTHORS file in the root of the source tree.
henrike@webrtc.org28e20752013-07-10 00:45:36 +00009 */
10
11package org.webrtc;
12
13/** Interface for observing SDP-related events. */
14public interface SdpObserver {
15 /** Called on success of Create{Offer,Answer}(). */
Magnus Jedvert9060eb12017-12-12 12:52:54 +010016 @CalledByNative void onCreateSuccess(SessionDescription sdp);
henrike@webrtc.org28e20752013-07-10 00:45:36 +000017
18 /** Called on success of Set{Local,Remote}Description(). */
Magnus Jedvert9060eb12017-12-12 12:52:54 +010019 @CalledByNative void onSetSuccess();
henrike@webrtc.org28e20752013-07-10 00:45:36 +000020
21 /** Called on error of Create{Offer,Answer}(). */
Magnus Jedvert9060eb12017-12-12 12:52:54 +010022 @CalledByNative void onCreateFailure(String error);
henrike@webrtc.org28e20752013-07-10 00:45:36 +000023
24 /** Called on error of Set{Local,Remote}Description(). */
Magnus Jedvert9060eb12017-12-12 12:52:54 +010025 @CalledByNative void onSetFailure(String error);
henrike@webrtc.org28e20752013-07-10 00:45:36 +000026}