From wiki.ginstr.com
Jump to: navigation, search
Line 3: Line 3:
 
[[Category:Action_Library]]
 
[[Category:Action_Library]]
  
<code>[[gn:act_storeFileInfo]]</code> stores information about a specified file internally. This information is later used by <code>[[gn:act_isIdenticalFile]]</code> action.
+
;Description: Action used to  store information about a specified file internally. This information is later used by <code>[[gn:act_isIdenticalFile]]</code> action.
  
;Can be used on widgets: any widget
+
;Action returns: boolean
 +
==Action signatures==
  
;Event trigger for action: no event, must be used in action set or conditional action.
+
===Store file info===
  
;Can be used as: a [[:Category:Actions#Action_types|no event action]]
+
;<code>[gn:act_storeFileInfo]|[source]</code>
  
;Additional required attributes on bound widget: none
+
{| class="wikitable sortable" style="font-size: 85%; text-align: left;"
 +
|-
 +
! scope="col" | Parameter
 +
! scope="col" | Description
 +
|-
 +
| [[source]]
 +
| [[source]] from where the file information will be used
 +
* Valid [[source|sources]]:
 +
** [[drawable]]
 +
** hardcoded file path
 +
|-
 +
|}
  
==Action signature==
+
====Example====
;<code>[gn:act_storeFileInfo]|[@drawable/resourceId]</code>
+
<code>@drawable/resourceId</code> - file reference<br><br>
==Value field content==
+
<code>[gn:act_isIdenticalFile]|[@drawable/resourceId]</code>
;<code>@drawable/resourceId</code>: name of drawable resource whose information will be stored
+
<hr>

Revision as of 10:40, 13 March 2017

gn:act_storeFileInfo

Description
Action used to store information about a specified file internally. This information is later used by gn:act_isIdenticalFile action.
Action returns
boolean

Action signatures

Store file info

[gn:act_storeFileInfo]|[source]
Parameter Description
source source from where the file information will be used

Example

@drawable/resourceId - file reference

[gn:act_isIdenticalFile]|[@drawable/resourceId]