public class RadFeedback extends Object implements AdapterView.OnItemClickListener
Modifier and Type | Class and Description |
---|---|
class |
RadFeedback.MainMenuAdapter |
static interface |
RadFeedback.OnAuthorPromptConfirmedListener |
static interface |
RadFeedback.OnItemsDeliveredCallback |
static interface |
RadFeedback.OnSendFeedbackFinishedListener
Implementations of this interface can receive events from
RadFeedback that a procedure for sending feedback
has completed. |
static interface |
RadFeedback.OnSubmitFeedbackFinishedCallback |
Modifier and Type | Method and Description |
---|---|
String |
apiKey()
Gets API key that identifies the backend application
currently associated with this instance of
RadFeedback . |
BitmapResolver |
getBitmapResolver() |
void |
init(String apiKey,
String serviceUri,
String uid)
Initializes the
RadFeedback instance with the provided
service Uri and application key. |
static RadFeedback |
instance()
Gets the single instance of
RadFeedback |
void |
onItemClick(AdapterView<?> parent,
View view,
int position,
long id) |
String |
serviceUri()
Gets URI that identifies the service to which the current
RadFeedback is connected. |
void |
setAdditionalContent(JSONObject additionalContent)
This method sets a
JSONObject which contains custom key-value pairs
which will be embedded into each feedback item created on the server. |
void |
setBitmapResolver(BitmapResolver bitmapResolver) |
void |
setOnFeedbackFinishedListener(RadFeedback.OnSendFeedbackFinishedListener listener)
Sets an implementation of the
RadFeedback.OnSendFeedbackFinishedListener
interface which is called when the feedback procedure has ended. |
void |
show(Context context)
Shows a popup containing the main options of the
RadFeedback
component. |
void |
showSendFeedback(Context context)
Starts a send feedback procedure by directly showing the Send Feedback activity.
|
public static RadFeedback instance()
RadFeedback
RadFeedback
.public BitmapResolver getBitmapResolver()
public void setBitmapResolver(BitmapResolver bitmapResolver)
public void init(String apiKey, String serviceUri, String uid)
RadFeedback
instance with the provided
service Uri and application key.apiKey
- the application key identify the backend project to which the feedback component will connect.serviceUri
- the uri of the service.uid
- identifies the current feedback client in the backend. By using this value feedback items
submitted by this client only will be visible to the end users of the application.public void setOnFeedbackFinishedListener(RadFeedback.OnSendFeedbackFinishedListener listener)
RadFeedback.OnSendFeedbackFinishedListener
interface which is called when the feedback procedure has ended.listener
- the implementation to initialize.public String apiKey()
RadFeedback
.public String serviceUri()
RadFeedback
is connected.public void show(Context context)
RadFeedback
component.context
- the Context
which will be used to show the popup.public void setAdditionalContent(JSONObject additionalContent)
JSONObject
which contains custom key-value pairs
which will be embedded into each feedback item created on the server. This allows
for appending custom content into the feedback items when needed.additionalContent
- an instance of the JSONObject
class
containing the custom content.public void showSendFeedback(Context context)
context
- the initiating Context
instance.public void onItemClick(AdapterView<?> parent, View view, int position, long id)
onItemClick
in interface AdapterView.OnItemClickListener