CachedDataClearOrder

public enum CachedDataClearOrder: Int

Options for the order that determines which channel’s messages will be deleted.

Since

4.6.0
  • Messages will be deleted by the custom order.

    SendbirdChatSDK will delete messages in the local storage depending the channel list that the client returns through the ClearCachedDataByCustomOrderDelegate/sortByCustomOrder(allCachedBaseChannelInfos:).

    Since

    4.6.0

    Declaration

    Swift

    case custom
  • Ascending order.

    If the messageCollectionLastAccessedAt is same, the createdAt of lastMessage will be used as the ascending order.

    Since

    4.6.0

    Declaration

    Swift

    case messageCollectionAccessedAt