setOfflineMessageDuration

public abstract void setOfflineMessageDuration(int duration, IRongCoreCallback.ResultCallback<Long> callback)

Sets the storage duration for offline messages on the server (in days).

Note: This feature requires customers to submit a ticket. The method will only take effect after the feature is enabled on the server.

Since

5.0.0

Parameters

duration

The compensation time for offline messages, range [1~7 days].

callback

The callback