FakeAgeSignalsManager

class FakeAgeSignalsManager : 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 functions

Task<AgeSignalsResult!>!

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

Unit

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

Unit

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

Public constructors

FakeAgeSignalsManager

FakeAgeSignalsManager()

Public functions

checkAgeSignals

fun checkAgeSignals(request: AgeSignalsRequest!): Task<AgeSignalsResult!>!

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

Parameters
request: AgeSignalsRequest!

The object to request age signals with.

Returns
Task<AgeSignalsResult!>!

A Task that completes once the AgeSignalsResult is available.

setNextAgeSignalsException

fun setNextAgeSignalsException(exception: AgeSignalsException!): Unit

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

setNextAgeSignalsResult

fun setNextAgeSignalsResult(result: AgeSignalsResult!): Unit

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