Content widget Delegate

A protocol to handle Content Widget actions.

Declared In

SNRContentWidget.h


The following method is called after a widget is loaded.

- (void)SNR_widgetDidLoad:(SNRContentWidget *)widget


The following method is called when an error occurs while loading.

- (void)SNR_widget:(SNRContentWidget *)widget didNotLoadWithError:(NSError *)error

Parameter Type Description
widget SNRContentWidget The widget instance that called the delegate method
error NSError The error that occurred

The following method is called when the user clicks a widget’s item.

- (void)SNR_widget:(SNRContentWidget *)widget didReceiveClickActionForModel:(SNRBaseModel *)model

Parameter Type Description
widget SNRContentWidget The widget instance that called the delegate method
model SNRBaseModel The model’s object that was clicked

The following method is called when the widget’s loading state changes.

- (void)SNR_widget:(SNRContentWidget *)widget isLoading:(BOOL)isLoading

Parameter Type Description
widget SNRContentWidget The widget instance that called the delegate method
isLoading Bool Widget’s loading state

The following method is called when the widget’s size changes.

- (void)SNR_widget:(SNRContentWidget *)widget didChangeToSize:(CGSize)size

Parameter Type Description
widget SNRContentWidget The widget instance that called the delegate method
size CGSize Widget’s new size

😕

We are sorry to hear that

Thank you for helping improve out documentation. If you need help or have any questions, please consider contacting support.

😉

Awesome!

Thank you for helping improve out documentation. If you need help or have any questions, please consider contacting support.