public class

SCNewMessageRichMediaResultHandler

extends SCRichMediaResultHandler
java.lang.Object
   ↳ com.c2call.sdk.pub.activities.resulthandlers.SCBaseResultHandler
     ↳ com.c2call.sdk.pub.activities.resulthandlers.SCRichMediaResultHandler
       ↳ com.c2call.sdk.pub.activities.resulthandlers.SCNewMessageRichMediaResultHandler

Summary

Public Constructors
SCNewMessageRichMediaResultHandler()
Public Methods
static SCNewMessageRichMediaResultHandler instance()
Protected Methods
void onActionAudio(Activity activity, Fragment fragment, SCRichMediaResultHandler.OnFinishListener finishListener, String userid, String path, String key)
Called if an audio file is ready to be sent.
void onActionFriend(Activity activity, Fragment fragment, SCRichMediaResultHandler.OnFinishListener finishListener, String userid, String[] friendMessages, String key)
Called if a friend is ready to be sent.
void onActionImage(Activity activity, Fragment fragment, SCRichMediaResultHandler.OnFinishListener finishListener, String userid, String path, String key)
Called if an image is ready to be sent.
void onActionLocation(Activity activity, Fragment fragment, SCRichMediaResultHandler.OnFinishListener finishListener, String userid, Location location, Address address, String key)
Called if a Location is ready to be sent.
void onActionPlace(Activity activity, Fragment fragment, SCRichMediaResultHandler.OnFinishListener finishListener, String userid, SimplePlace place, String key)
Called if a SimplePlace is ready to be sent.
void onActionVCard(Activity activity, Fragment fragment, SCRichMediaResultHandler.OnFinishListener finishListener, String userid, String path, String key)
Called if a vCard is ready to be sent.
void onActionVideo(Activity activity, Fragment fragment, SCRichMediaResultHandler.OnFinishListener finishListener, String userid, String path, String key)
Called if a video is ready to be sent.
[Expand]
Inherited Methods
From class com.c2call.sdk.pub.activities.resulthandlers.SCRichMediaResultHandler
From class com.c2call.sdk.pub.activities.resulthandlers.SCBaseResultHandler
From class java.lang.Object

Public Constructors

public SCNewMessageRichMediaResultHandler ()

Public Methods

public static SCNewMessageRichMediaResultHandler instance ()

Protected Methods

protected void onActionAudio (Activity activity, Fragment fragment, SCRichMediaResultHandler.OnFinishListener finishListener, String userid, String path, String key)

Called if an audio file is ready to be sent.

Parameters
activity the Activity this Handler was called from. May be null
fragment the Frgament this Handler was called from. May be null
finishListener a listener to catch the specific instance of SCBaseRichMessageSendObject when it's ready to be sent.
userid the recipient of the message
path the absolute path of the file file to be sent.
key optional public key to encrypt the message

protected void onActionFriend (Activity activity, Fragment fragment, SCRichMediaResultHandler.OnFinishListener finishListener, String userid, String[] friendMessages, String key)

Called if a friend is ready to be sent.

Parameters
activity the Activity this Handler was called from. May be null
fragment the Frgament this Handler was called from. May be null
finishListener a listener to catch the specific instance of SCBaseRichMessageSendObject when it's ready to be sent.
userid the recipient of the message
friendMessages an array of user IDs to be sent
key optional public key to encrypt the message

protected void onActionImage (Activity activity, Fragment fragment, SCRichMediaResultHandler.OnFinishListener finishListener, String userid, String path, String key)

Called if an image is ready to be sent.

Parameters
activity the Activity this Handler was called from. May be null
fragment the Frgament this Handler was called from. May be null
finishListener a listener to catch the specific instance of SCBaseRichMessageSendObject when it's ready to be sent.
userid the recipient of the message
path the absolute path of the file file to be sent.
key optional public key to encrypt the message

protected void onActionLocation (Activity activity, Fragment fragment, SCRichMediaResultHandler.OnFinishListener finishListener, String userid, Location location, Address address, String key)

Called if a Location is ready to be sent.

Parameters
activity the Activity this Handler was called from. May be null
fragment the Frgament this Handler was called from. May be null
finishListener a listener to catch the specific instance of SCBaseRichMessageSendObject when it's ready to be sent.
userid the recipient of the message
location the Location to be sent
address and optional Address to be sent
key optional public key to encrypt the message

protected void onActionPlace (Activity activity, Fragment fragment, SCRichMediaResultHandler.OnFinishListener finishListener, String userid, SimplePlace place, String key)

Called if a SimplePlace is ready to be sent.

Parameters
activity the Activity this Handler was called from. May be null
fragment the Frgament this Handler was called from. May be null
finishListener a listener to catch the specific instance of SCBaseRichMessageSendObject when it's ready to be sent.
userid the recipient of the message
place the Place to be sent
key optional public key to encrypt the message

protected void onActionVCard (Activity activity, Fragment fragment, SCRichMediaResultHandler.OnFinishListener finishListener, String userid, String path, String key)

Called if a vCard is ready to be sent.

Parameters
activity the Activity this Handler was called from. May be null
fragment the Frgament this Handler was called from. May be null
finishListener a listener to catch the specific instance of SCBaseRichMessageSendObject when it's ready to be sent.
userid the recipient of the message
path the absolute path of the file file to be sent.
key optional public key to encrypt the message

protected void onActionVideo (Activity activity, Fragment fragment, SCRichMediaResultHandler.OnFinishListener finishListener, String userid, String path, String key)

Called if a video is ready to be sent.

Parameters
activity the Activity this Handler was called from. May be null
fragment the Frgament this Handler was called from. May be null
finishListener a listener to catch the specific instance of SCBaseRichMessageSendObject when it's ready to be sent.
userid the recipient of the message
path the absolute path of the file file to be sent.
key optional public key to encrypt the message