Interface NotificationSessionOperation
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Represents an operation performed with a callback-scoped
NotificationSession.
Pyranid invokes the operation synchronously, at most once, after all requested notification channels have been
registered. The session is valid only while perform(NotificationSession) is active and must not be retained
or used from another thread.
- Since:
- 4.6.0
- Author:
- Mark Allen
-
Method Summary
Modifier and TypeMethodDescriptionvoidperform(@NonNull NotificationSession session) Performs work with the provided notification session.
-
Method Details
-
perform
Performs work with the provided notification session.- Parameters:
session- callback-scoped notification session- Throws:
Exception- if the operation fails- Since:
- 4.6.0
-