SWChatManager

@objc
class SWChatManager : NSObject

Undocumented

  • Array of restricted words. It is set to nil as restricted words file not loaded yet.

    Declaration

    Swift

    static var restrictedWords: [String]?
  • Check if provided message contains a restricted word.

    Declaration

    Swift

    static func containsRestrictedWord(message: String) -> Bool

    Parameters

    word

    <#word description#>

    Return Value

    <#return value description#>

  • Loads restricted words from restrictedWords.txt embedded file.

    Declaration

    Swift

    private static func loadResitrictedWordsFile()