requestGameNoticeInfo
open fun requestGameNoticeInfo(@Nullable configuration: GameNoticeConfiguration, @NonNull callback: GamebaseDataCallback<GameNoticeInfo>)
Returns the game notice information.
Example Usage:
GameNoticeConfiguration configuration = GameNoticeConfiguration
.newBuilder()
.setCategoryNames(Arrays.asList("myCategory", "anotherCategory"))
.build();
Gamebase.GameNotice.requestGameNoticeInfo(configuration, new GamebaseDataCallback<GameNoticeInfo>() {
@Override
public void onCallback(GameNoticeInfo data, GamebaseException exception) {
if (Gamebase.isSuccess(exception)) {
// Succeeded.
} else {
// Failed.
}
}
});
Content copied to clipboard
Since
Added 2.79.0.
Parameters
configuration
The init settings of game notice.
callback
Returns the game notice information.