new MessagingPackage(session, packageType)
Parameters:
Name | Type | Description |
---|---|---|
session |
Object | an instance of session object |
packageType |
String | The name of package. If not provided, default value is 'messaging'. |
Methods
-
createMessaging() → {Messaging}
-
Creates an instance of a Messaging object and also registers it with the package.
Returns:
an instance of Messaging object.
- Type
- Messaging
-
register(messaging)
-
Registers an instance of Messaging object with the package. This should be used only when an extension is created for Messaging/MessagingPackage.
Parameters:
Name Type Description messaging
Messaging an instance of Messaging object