com.cisco.jabber.guest.sdk.BaseTextureViewLayout Class Referenceabstract

Abstract view that is extended by DataView, PreviewView, RemoteView, and SelfView. More...

Inheritance diagram for com.cisco.jabber.guest.sdk.BaseTextureViewLayout:
com.cisco.jabber.guest.sdk.RenderCallbacks com.cisco.jabber.guest.sdk.DataView com.cisco.jabber.guest.sdk.PreviewView com.cisco.jabber.guest.sdk.RemoteView com.cisco.jabber.guest.sdk.SelfView

Public Member Functions

 BaseTextureViewLayout (Context context, int layout)
 Construct a new BaseTextureViewLayout. More...
 
 BaseTextureViewLayout (Context context, AttributeSet attrs, int layout)
 Construct a new BaseTextureViewLayout. More...
 
 BaseTextureViewLayout (Context context, AttributeSet attrs, int defStyle, int layout)
 Construct a new BaseTextureViewLayout. More...
 
TextureView getTextureView ()
 Gets the TextureView contained within this view. More...
 
void onFramesDropped ()
 Called when frames are no longer being delivered to the TextureView.
 
void onFramesResumed ()
 Called when frames have resumed being delivered to the TextureView.
 
void onFrameSizeChanged (int width, int height)
 Called when the size of the frames being delivered to the TextureView has changed. More...
 
void onFirstFrame ()
 Called when the first frame is delivered to the TextureView.
 

Protected Member Functions

void processNewInstanceAvailable (Intent intent)
 This function is called from the internal registered BroadcastReceiver whenever this view receives notification from JabberGuestCall that there is a new instance of this class available. More...
 
void processCallStateChanged (Intent intent)
 This function is called from the internal registered BroadcastReceiver whenever this view receives notification from JabberGuestCall that a call state change has taken place on the current instance of JabberGuestCall. More...
 
void processCallControlEvent (Intent intent)
 This function is called from the internal registered BroadcastReceiver whenever this view receives notification from JabberGuestCall that a call control event has taken place on the current instance of JabberGuestCall. More...
 
void processCallErrorEvent (Intent intent)
 This function is called from the internal registered BroadcastReceiver whenever this view receives notification from JabberGuestCall that a call error event has taken place on the current instance of JabberGuestCall. More...
 
JabberGuestCall getJabberGuestCallFromReference ()
 Returns the current JabberGuestCall instance from the internal WeakReference stored by this view if it exists. More...
 

Protected Attributes

WeakReference< JabberGuestCallmJabberCallReference = null
 Stores a WeakReference to the current JabberGuestCall instance during a call.
 
BroadcastReceiver mBroadcastReceiver
 Broadcast Receiver that is registered to JabberGuestCall instance in order to receive notifications. More...
 
TextureView mTextureView = null
 Represents the contained TextureView in this BaseTextureViewLayout class.
 
int mFrameWidth = 0
 The current frame width received from the internal media engine for this view.
 
int mFrameHeight = 0
 The current frame height received from the internal media engine for this view.
 
int mMaxWidth = Integer.MAX_VALUE
 The maximum allowable frame width for this view.
 
int mMaxHeight = Integer.MAX_VALUE
 The maximum allowable frame height for this view.
 

Detailed Description

Abstract view that is extended by DataView, PreviewView, RemoteView, and SelfView.

This class contains logic that allows these views to associate themselves with a JabberGuestCall instance whenever the view is attached to a window, or to properly dissociate themselves from that JabberGuestCall instance whenever the view is detached from a window. This allows these views to tie into call state and call control event information, be notified of any relevant changes, and update their internal logic and/or appearance as appropriate.

Constructor & Destructor Documentation

com.cisco.jabber.guest.sdk.BaseTextureViewLayout.BaseTextureViewLayout ( Context  context,
int  layout 
)
inline

Construct a new BaseTextureViewLayout.

Parameters
contextThe Context the view is running in, through which it can access the current theme, resources, etc.
layoutResource identifier corresponding to layout file that should be used when inflating this view.
com.cisco.jabber.guest.sdk.BaseTextureViewLayout.BaseTextureViewLayout ( Context  context,
AttributeSet  attrs,
int  layout 
)
inline

Construct a new BaseTextureViewLayout.

Parameters
contextThe Context the view is running in, through which it can access the current theme, resources, etc.
attrsThe attributes of the XML tag that is inflating the view.
layoutResource identifier corresponding to layout file that should be used when inflating this view.
com.cisco.jabber.guest.sdk.BaseTextureViewLayout.BaseTextureViewLayout ( Context  context,
AttributeSet  attrs,
int  defStyle,
int  layout 
)
inline

Construct a new BaseTextureViewLayout.

Parameters
contextThe Context the view is running in, through which it can access the current theme, resources, etc.
attrsThe attributes of the XML tag that is inflating the view.
defStyleAn attribute in the current theme that contains a reference to a style resource that supplies default values for the view. Can be 0 to not look for defaults.
layoutResource identifier corresponding to layout file that should be used when inflating this view.

Member Function Documentation

JabberGuestCall com.cisco.jabber.guest.sdk.BaseTextureViewLayout.getJabberGuestCallFromReference ( )
inlineprotected

Returns the current JabberGuestCall instance from the internal WeakReference stored by this view if it exists.

Returns
A valid JabberGuestCall instance, or null if this view's WeakReference does not contain a reference to a valid JabberGuestCall instance.
TextureView com.cisco.jabber.guest.sdk.BaseTextureViewLayout.getTextureView ( )
inline

Gets the TextureView contained within this view.

Returns
The TextureView contained within this view.
void com.cisco.jabber.guest.sdk.BaseTextureViewLayout.onFrameSizeChanged ( int  width,
int  height 
)
inline

Called when the size of the frames being delivered to the TextureView has changed.

Parameters
widthThe new width of the received frames.
heightThe new height of the received frames.

Implements com.cisco.jabber.guest.sdk.RenderCallbacks.

void com.cisco.jabber.guest.sdk.BaseTextureViewLayout.processCallControlEvent ( Intent  intent)
inlineprotected

This function is called from the internal registered BroadcastReceiver whenever this view receives notification from JabberGuestCall that a call control event has taken place on the current instance of JabberGuestCall.

Parameters
intentThe intent that was broadcast from JabberGuestCall, which can contain additional information about the nature of the notification.
void com.cisco.jabber.guest.sdk.BaseTextureViewLayout.processCallErrorEvent ( Intent  intent)
inlineprotected

This function is called from the internal registered BroadcastReceiver whenever this view receives notification from JabberGuestCall that a call error event has taken place on the current instance of JabberGuestCall.

Parameters
intentThe intent that was broadcast from JabberGuestCall, which can contain additional information about the nature of the notification.
void com.cisco.jabber.guest.sdk.BaseTextureViewLayout.processCallStateChanged ( Intent  intent)
inlineprotected

This function is called from the internal registered BroadcastReceiver whenever this view receives notification from JabberGuestCall that a call state change has taken place on the current instance of JabberGuestCall.

Parameters
intentThe intent that was broadcast from JabberGuestCall, which can contain additional information about the nature of the notification.
void com.cisco.jabber.guest.sdk.BaseTextureViewLayout.processNewInstanceAvailable ( Intent  intent)
inlineprotected

This function is called from the internal registered BroadcastReceiver whenever this view receives notification from JabberGuestCall that there is a new instance of this class available.

Parameters
intentThe intent that was broadcast from JabberGuestCall, which can contain additional information about the nature of the notification.

Member Data Documentation

BroadcastReceiver com.cisco.jabber.guest.sdk.BaseTextureViewLayout.mBroadcastReceiver
protected
Initial value:
= new BroadcastReceiver() {
@Override
public void onReceive(Context context, Intent intent) {
String action = intent.getAction();
if (JabberGuestCall.ACTION_INSTANCE_AVAILABLE.equals(action)) {
} else if (JabberGuestCall.ACTION_CALL_STATE_CHANGED.equals(action)) {
} else if (JabberGuestCall.ACTION_CALL_CONTROL_EVENT.equals(action)) {
} else if (JabberGuestCall.ACTION_CALL_ERROR_EVENT.equals(action)) {
}
}
}

Broadcast Receiver that is registered to JabberGuestCall instance in order to receive notifications.

BaseTextureViewLayout registers for all notification types with the current JabberGuestCall instance when the view is attached to the window, and unregisters when it is detached from the window.