notifications.unsubscribe()

Type Function
Return value none
Revision Current Public Release (2018.3326)
Keywords notification, notifications, unsubscribe
See also notifications.subscribe()
notifications.*

Overview

Unsubscribe from a specific topic.

Syntax

notifications.unsubscribe( topic )
topic (required)

String. The topic to unsubscribe from.

Example

local notifications = require( "plugin.notifications.v2" )

notifications.subscribe( "news" )

-- Sometime later, unsubscribe from the topic
notifications.unsubscribe( "news" )