PubNub constructor
PubNub({ - Keyset? defaultKeyset,
- INetworkingModule? networking,
- IParserModule? parser,
- ICryptoModule? crypto,
})
Implementation
PubNub(
{Keyset? defaultKeyset,
INetworkingModule? networking,
IParserModule? parser,
ICryptoModule? crypto})
: super(
defaultKeyset: defaultKeyset,
networking: networking ?? NetworkingModule(),
parser: parser ?? ParserModule(),
crypto: crypto ??
(defaultKeyset?.cipherKey != null
? CryptoModule.legacyCryptoModule(defaultKeyset!.cipherKey!)
: LegacyCryptoModule())) {
batch = BatchDx(this);
channelGroups = ChannelGroupDx(this);
objects = ObjectsDx(this);
files = FileDx(this);
}