setComponentsProvider method

Class: EyesPlatform: EspressoLanguage: Java SDK:

If you use the AndroidX libraries then call this method after you instantiate Eyes.

Syntax


eyes.setComponentsProvider(componentsProvider);

Parameters

componentsProvider
Type:IComponentsProvider
Pass a value of new AndroidXComponentsProvider()

Return value

Type: void

Example


import com.applitools.eyes.android.components.androidx.AndroidXComponentsProvider;
//...
ClassicRunner runner = new ClassicRunner()
Eyes eyes = new Eyes(runner);
eyes.setComponentsProvider(new AndroidXComponentsProvider());