| com.glia.androidsdk.engagement.EngagementFile |
| Nested Classes | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| class | EngagementFile.Events | ||||||||||
| interface | EngagementFile.FileEvent<T> | ||||||||||
| enum | EngagementFile.ScanResult | File security scan result status | |||||||||
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| abstract String | getId() | ||||||||||
| abstract boolean | isSecurityScanRequired() | ||||||||||
| abstract <T> void |
off(FileEvent<T> event, Consumer<T> listener)
Removes event listeners from the
EngagementFile. | ||||||||||
| abstract <T> void |
off(FileEvent<T> event)
Removes all event listeners from
EngagementFile. | ||||||||||
| abstract <T> void |
on(FileEvent<T> event, Consumer<T> listener)
Registers event listeners for
EngagementFile. | ||||||||||
Removes event listeners from the EngagementFile.
If an event listener is removed while the EngagementFile is processing an event,
it is not triggered with the current event.
Calling off with arguments which do not identify any currently registered
listener has no effect.
| event | One of EngagementFile.Events |
|---|---|
| listener | Event listener to remove |
Removes all event listeners from EngagementFile.
Behaves the same way as off(FileEvent, Consumer) but removes all listeners of specified type
| event | One of EngagementFile.Events
|
|---|
Registers event listeners for EngagementFile.
If a listener is added while the EngagementFile is processing an event,
it is not triggered with the current event.
If multiple identical listeners are registered on the same event type
the duplicate instances are discarded. They do not cause the listener
to be called twice and do not need to be removed with the off(EngagementFile.FileEvent
method.
| event | One of EngagementFile.Events |
|---|---|
| listener | Event listener to register |