public interface

INewMessageController

implements IController<T extends IViewHolder>
com.c2call.sdk.pub.gui.newmessage.controller.INewMessageController
Known Indirect Subclasses

Class Overview

Interface for NewMessage Controllers

Summary

Public Methods
abstract void clearAttachment()
Clears the rich message attchment, if any
abstract void enableSecureMessage(boolean enabled)
This method is called to enable/disable secure messaging for this conroller
abstract SCFriendData getData()
Gets the friend (recipient) data
abstract SCMoneyAmount getPriceInfo()
If the recipient is a phone number, then this returns the price that this SMS will cost when sending
abstract SCBaseRichMessageSendObject getSendObject()
Gets the rich message attachment that will be send, if any
abstract boolean isSecureMessage()
Checkes whether this is a secure message
abstract boolean isSms()
Checks whether this is a SMS (recipient is phone number)
abstract void onButtonAttachClicked(View v)
Called when the attach button was clicked
abstract void onButtonChangeContactClicked(View v)
Called if the Button to change the recipient was clicked
abstract void onButtonSendClicked(View v)
Called when the send Button was clicked
abstract void onCheckedChangedSecure(CompoundButton cb)
Called when the checkbox for secure messaging changed its checked-state
abstract boolean onEditMessageTouch(View v, MotionEvent motionEvent)
Called when the message view is touched
abstract void onEmptyDataSet()
Called if no recipient was set when the controller's view is attached to the window
abstract void onTextMessageChanged(Editable s)
Called when the message text changed
abstract void setData(SCFriendData friend)
Sets the friend (recipient) data to write the message for
abstract void setSendObject(SCBaseRichMessageSendObject sendObject)
Sets a rich message attachment to be send
[Expand]
Inherited Methods
From interface com.c2call.sdk.pub.gui.core.controller.IController

Public Methods

public abstract void clearAttachment ()

Clears the rich message attchment, if any

public abstract void enableSecureMessage (boolean enabled)

This method is called to enable/disable secure messaging for this conroller

Parameters
enabled true to enable secure messaging.

public abstract SCFriendData getData ()

Gets the friend (recipient) data

public abstract SCMoneyAmount getPriceInfo ()

If the recipient is a phone number, then this returns the price that this SMS will cost when sending

Returns
  • the price of the SMS, or null if this is an instant massage to another user

public abstract SCBaseRichMessageSendObject getSendObject ()

Gets the rich message attachment that will be send, if any

Returns
  • the rich message attachment

public abstract boolean isSecureMessage ()

Checkes whether this is a secure message

Returns
  • true, if this is a secure message

public abstract boolean isSms ()

Checks whether this is a SMS (recipient is phone number)

Returns
  • true, if this is a SMS

public abstract void onButtonAttachClicked (View v)

Called when the attach button was clicked

Parameters
v the clicked Button

public abstract void onButtonChangeContactClicked (View v)

Called if the Button to change the recipient was clicked

Parameters
v the clicked button

public abstract void onButtonSendClicked (View v)

Called when the send Button was clicked

Parameters
v thet clicked Button

public abstract void onCheckedChangedSecure (CompoundButton cb)

Called when the checkbox for secure messaging changed its checked-state

Parameters
cb the checkbox that changed the state

public abstract boolean onEditMessageTouch (View v, MotionEvent motionEvent)

Called when the message view is touched

Parameters
v the touched view
motionEvent the motion event
Returns
  • whether this event was consumed

public abstract void onEmptyDataSet ()

Called if no recipient was set when the controller's view is attached to the window

public abstract void onTextMessageChanged (Editable s)

Called when the message text changed

Parameters
s the new text

public abstract void setData (SCFriendData friend)

Sets the friend (recipient) data to write the message for

Parameters
friend the data to be set

public abstract void setSendObject (SCBaseRichMessageSendObject sendObject)

Sets a rich message attachment to be send

Parameters
sendObject the rich message attachment