public class

Inbox

extends Object
java.lang.Object
   ↳ com.ad4screen.sdk.Inbox

Class Overview

This inbox contains all messages requested by a developer for one or more users.
You can update this inbox and these messages
As soon as you want to commit your updates, send this object to Ad4Screen Servers with updateMessages.
Please see : Using Inbox

See Also

Summary

Public Methods
int countMessages()
Get total messages.
int countMessagesOfCategory(String category)
Get total messages of a category
int countReadMessages()
Get total read messages
int countUnReadMessages()
Get total Unread messages
void getMessage(int index, A4S.MessageCallback callback)
Get a message of this Inbox
[Expand]
Inherited Methods
From class java.lang.Object

Public Methods

public int countMessages ()

Get total messages.

Returns
  • the total messages in this inbox

public int countMessagesOfCategory (String category)

Get total messages of a category

Parameters
category the category
Returns
  • the total messages of this category in this inbox

public int countReadMessages ()

Get total read messages

Returns
  • the total of read messages in this inbox

public int countUnReadMessages ()

Get total Unread messages

Returns
  • the total of unread messages in this inbox

public void getMessage (int index, A4S.MessageCallback callback)

Get a message of this Inbox

Returns
  • the message