public class SMultiWindowActivity extends Object
Modifier and Type | Class and Description |
---|---|
static interface |
SMultiWindowActivity.StateChangeListener
interface class
|
Modifier and Type | Field and Description |
---|---|
static int |
ZONE_A
activity's obscured zone A
|
static int |
ZONE_B
activity's obscured zone B
|
static int |
ZONE_FULL
activity's obscured zone FULL
|
Constructor and Description |
---|
SMultiWindowActivity(Activity activity)
Creator
|
Modifier and Type | Method and Description |
---|---|
Rect |
getRectInfo()
Get size and location of
MultiWindow |
PointF |
getScaleInfo()
Get the window scale Information
|
int |
getZoneInfo()
Get the window zone Information
|
boolean |
isMinimized()
Check whether window is minimized
this api is operated from api level 19 (Android 4.4).
|
boolean |
isMultiWindow()
Check whether window mode is multi window
|
boolean |
isNormalWindow()
Check whether current window mode is normal window
|
boolean |
isScaleWindow()
Check whether window mode is scale window
this api is operated from api level 19 (Android 4.4).
|
static Intent |
makeMultiWindowIntent(Intent intent,
float scale)
The following code creates an Intent for starting an Activity with MultiWindow
This API is compatible with API level 19 (Android 4.4).
|
static Intent |
makeMultiWindowIntent(Intent intent,
int zoneInfo)
Make an intent for starting Activity in MultiWindow
|
void |
minimizeWindow()
The following code minimizes the window state.
|
void |
multiWindow(float scale)
The following code changes the window state to multiwindow.
|
void |
normalWindow()
Changed window state to normal.this api is operated from api level 18 (Android 4.3).
|
boolean |
setStateChangeListener(SMultiWindowActivity.StateChangeListener listener)
set listener for detecting changing window mode and info.
|
public static final int ZONE_A
public static final int ZONE_B
public static final int ZONE_FULL
public SMultiWindowActivity(Activity activity)
activity
- Activitypublic boolean isNormalWindow()
true
if normal window modefalse
otherwisepublic boolean isMultiWindow()
true
if multi window modefalse
otherwisepublic boolean isScaleWindow()
true
if Scale window modefalse
otherwisepublic boolean isMinimized()
true
if window is minimizedfalse
otherwisepublic void normalWindow()
public void multiWindow(float scale)
float
- scalepublic void minimizeWindow()
public Rect getRectInfo()
MultiWindow
MultiWindow
if its window mode is multiwindow return current window size,
unless return a maximum window size.public int getZoneInfo()
public PointF getScaleInfo()
public boolean setStateChangeListener(SMultiWindowActivity.StateChangeListener listener)
listener
- MultiWindowListener
listener has three override API 'onModeChanged' and 'onZoneChanged' and 'onSizeChanged' to address event when window mode or zone or size is changed.public static Intent makeMultiWindowIntent(Intent intent, int zoneInfo)
intent
- for launching application in multi window mode.zoneInfo
- for window location in split mode.public static Intent makeMultiWindowIntent(Intent intent, float scale)
intent
- for launching the application in multi window mode.scale
- for window scale to launch in cascade mode. This can only be used if the device supports freeStyle.Copyright © Samsung Electronics, Co., Ltd. All rights reserved.