Helper methods for calling APIs added in KITKAT (4.4, API level 19)
- Author
- Evan W. Patton (ewpat.nosp@m.ton@.nosp@m.mit.e.nosp@m.du)
Definition at line 24 of file KitkatUtil.java.
◆ getMessagesFromIntent()
static List<SmsMessage> com.google.appinventor.components.runtime.util.KitkatUtil.getMessagesFromIntent |
( |
Intent |
intent | ) |
|
|
static |
Retrieve any SmsMessage objects encoded in the SMS_RECEIVED intent.
- Parameters
-
intent | An intent passed by Android to the SMS_RECEIVED receiver. |
- Returns
- A list of SmsMessages. The list will be non-null but zero length if the intent lacks SMS content.
Definition at line 36 of file KitkatUtil.java.
◆ getMinHeight()
static int com.google.appinventor.components.runtime.util.KitkatUtil.getMinHeight |
( |
TextView |
view | ) |
|
|
static |
Get the minimum height of the view. On versions prior to Kitkat, getMinHeight is undefined so we return the height of the component. Therefore, this method should be called before the component is manipulated.
- Parameters
-
view | The text view of which to get the minimum height |
- Returns
- The "minimum" allowable height of the view
Definition at line 65 of file KitkatUtil.java.
◆ getMinWidth()
static int com.google.appinventor.components.runtime.util.KitkatUtil.getMinWidth |
( |
TextView |
view | ) |
|
|
static |
Get the minimum width of the view. On versions prior to Kitkat, getMinWidth is undefined so we return the width of the component. Therefore, this method should be called before the component is manipulated.
- Parameters
-
view | The text view of which to get the minimum width |
- Returns
- The "minimum" allowable width of the view
Definition at line 51 of file KitkatUtil.java.
The documentation for this class was generated from the following file:
- C:/Users/Ulli/appinventor-sources/appinventor/components/src/com/google/appinventor/components/runtime/util/KitkatUtil.java