question

progmcb avatar image
progmcb asked Richelle Herrli answered

Customer facing fullscreen not working

Hi,

I am trying to make a customer facing app but it is not working correctly. I am using the Clover Mini 2nd gen and I tried using the following code below from https://docs.clover.com/docs/creating-custom-tender-apps..

public void setSystemUiVisibility() {
        getWindow().getDecorView().setSystemUiVisibility(
                View.SYSTEM_UI_FLAG_LAYOUT_STABLE
                        | View.SYSTEM_UI_FLAG_LAYOUT_HIDE_NAVIGATION
                        | View.SYSTEM_UI_FLAG_LAYOUT_FULLSCREEN
                        | View.SYSTEM_UI_FLAG_HIDE_NAVIGATION
                        | View.SYSTEM_UI_FLAG_LOW_PROFILE
                        | View.SYSTEM_UI_FLAG_FULLSCREEN
                        | View.SYSTEM_UI_FLAG_IMMERSIVE_STICKY);
}

It doesn't hide the navigation bar or status bar. Is there new code to fix this?

Thanks

Custom Tenders
10 |2000 characters needed characters left characters exceeded

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

· Write an Answer
Richelle Herrli avatar image
Richelle Herrli answered

It looks like you're using the code needed to achieve Customer facing mode on a Station 1, which has many functional differences from subsequent devices.

For the Mini (2nd Gen) please use the static methods listed in our documentation: https://clover.github.io/clover-android-sdk/com/clover/sdk/util/CustomerMode.html

10 |2000 characters needed characters left characters exceeded

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Welcome to the
Clover Developer Community