FakeAgeSignalsManager

public class FakeAgeSignalsManager implements AgeSignalsManager


A fake implementation of the AgeSignalsManager.

This implementation is completely self-contained in the library and does not interact with the Play Store.

Keep in mind, you should use this API for only unit-tests and early development iterations. It is not intended for full stack integration tests.

Summary

Public constructors

Public methods

Task<AgeSignalsResult>

Performs an age signals check with Google Play for the currently signed in user.

void

Sets the exception to be thrown the next time checkAgeSignals is called.

void

Sets the result to be returned the next time checkAgeSignals is called.

Public constructors

FakeAgeSignalsManager

public FakeAgeSignalsManager()

Public methods

checkAgeSignals

public Task<AgeSignalsResultcheckAgeSignals(AgeSignalsRequest request)

Performs an age signals check with Google Play for the currently signed in user.

Parameters
AgeSignalsRequest request

The object to request age signals with.

Returns
Task<AgeSignalsResult>

A Task that completes once the AgeSignalsResult is available.

setNextAgeSignalsException

public void setNextAgeSignalsException(AgeSignalsException exception)

Sets the exception to be thrown the next time checkAgeSignals is called.

setNextAgeSignalsResult

public void setNextAgeSignalsResult(AgeSignalsResult result)

Sets the result to be returned the next time checkAgeSignals is called.