1 /* 2 * Copyright 2013 The WebRTC project authors. All Rights Reserved. 3 * 4 * 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. 9 */ 10 11 package org.webrtc; 12 13 /** Interface for observing SDP-related events. */ 14 public interface SdpObserver { 15 /** Called on success of Create{Offer,Answer}(). */ onCreateSuccess(SessionDescription sdp)16 @CalledByNative void onCreateSuccess(SessionDescription sdp); 17 18 /** Called on success of Set{Local,Remote}Description(). */ onSetSuccess()19 @CalledByNative void onSetSuccess(); 20 21 /** Called on error of Create{Offer,Answer}(). */ onCreateFailure(String error)22 @CalledByNative void onCreateFailure(String error); 23 24 /** Called on error of Set{Local,Remote}Description(). */ onSetFailure(String error)25 @CalledByNative void onSetFailure(String error); 26 } 27