Samsung patent details how the foldable Galaxy X may operate
Samsung Galaxy S9
In terms of how Samsung envisions the smartphone, it appears the South Korean company will be treating the two portions of the display as separate panels. Thus, when the smartphone is folded slightly, the bottom portion, which makes up 60% of the total, will be deactivated, leaving just the upper half in operation. This is achieved via a built-in sensor that detects not only when the smartphone is bent, but also the angle and speed at which this has been done, and how long the position has been maintained for. Also, it’s understood that a separate sensor will be able to detect to what extent the user is gripping the rear of the smartphone – when the user is not touching the rear, the display will be able to return to its unbent state automatically.
Considering this is simply a patent, there's no guarantee the Galaxy X will function as described in the filing. However, with the release currently set for January at CES 2019, the brand's most recent patents most likely provide some kind of hint at how the Android device will work.
source: LetsGoDigital (translated)
Things that are NOT allowed: