diff --git a/README.md b/README.md index 8ddf03c..a86a1af 100644 --- a/README.md +++ b/README.md @@ -21,6 +21,7 @@ * [**Documentation**](#documentation) * [Enabling / Disabling the Checkbox](#enabling--disabling-the-checkbox) * [Reloading](#reloading) + * [Delegate] (#delegate) * [Customization](#customization) ## Project Details @@ -101,6 +102,15 @@ Example usage: [self.myCheckBox reload] ``` +### Delegate +**BEMCheckBox** uses a delegate to receive check box events. The delegate object must conform to the `BEMCheckBoxDelegate` protocol, which is composed of two optional methods: + +- `didTapCheckBox:` +Sent to the delegate every time the check box gets tapped, after its properties are updated (on), but before the animations are completed. + +- `animationDidStopForCheckBox:` +Sent to the delegate every time the check box finishes being animated. + ### Customization **BEMCheckBox** is exclusively customizable though properties. The following diagram provides a good overview: