OnSaveInstanceState and OnRestoreInstanceState in Xamarin Forms Custom Renderer

I am implementing a custom renderer for an android view by inheriting from ViewRenderer<Dial, DialView>. When I attempt to write the code to persist and restore the dial control's value. there is no bundle parameter on this methods that are recommended overrides to achieve this. How do you go about saving off this information?

/// <summary>
/// Called when the view is backgrounded.
/// </summary>
/// <returns></returns>
protected override IParcelable OnSaveInstanceState()
{
    return base.OnSaveInstanceState();
}

/// <summary>
/// Called when restoring the view from the background.
/// </summary>
/// <param name="state">The state.</param>
protected override void OnRestoreInstanceState(IParcelable state)
{
    base.OnRestoreInstanceState(state);
}
Sign In or Register to comment.