title: Setting a delegate in Android
body: <p>I need to accomplish the following:</p>
  
  <pre><code>AdBuddiz.RewardedVideo.setDelegate(delegate);
  </code></pre>
  
  <p>And the documentation for this SDK says "The delegate must implement the following interface":</p>
  
  <pre><code>interface AdBuddizRewardedVideoDelegate {
    void didComplete();    // user fully watched the video, give the reward here 
  
    // optional
    void didFetch();       // a video is ready to be displayed
    void didFail(AdBuddizRewardedVideoError error); // SDK was unable to fetch or show a video
    void didNotComplete(); // an error happened during video playback
  }
  </code></pre>
  
  <p>I am familiar with delegation in iOS, however I am unfamiliar how this works in Java / Android. Any help appreciated.</p>