From wiki.ginstr.com
Jump to: navigation, search
m (formatting)
 
(2 intermediate revisions by one other user not shown)
Line 3: Line 3:
 
[[Category:Action_Library]]
 
[[Category:Action_Library]]
  
<code>[[gn:act_isIdenticalFile]]</code> compares if file that is stored on device is identical to file information last stored.
+
;Description: Action used to compare if file that is stored on device is identical to file information last stored.
  
Returns ''Boolean'' (<code>true</code> or <code>false</code>) and can be used in <code>[[gn:act_if]]</code> action.
+
;Action returns: boolean
 +
==Action signatures==
  
;Can be used on widgets: any widget
+
===Check if file is identical===
  
;Event trigger for action: no event, must be used in action set or conditional action.
+
:;<code>[gn:act_isIdenticalFile]|[source]</code>
  
;Can be used as: a [[:Category:Actions#Action_types|no event action]]
+
:{| class="wikitable sortable" style="font-size: 85%; text-align: left;"
 +
|-
 +
! scope="col" | Parameter
 +
! scope="col" | Description
 +
|-
 +
| <code>[[source]]</code>
 +
| [[source]] from where the file information will be used
 +
* Valid [[source|sources]]:
 +
** <code>@drawable</code>
 +
** hardcoded file path
 +
|-
 +
|}
  
;Additional required attributes on bound widget: none
+
====Example====
 
+
:<code>@drawable/resourceId</code> - file reference<br>
==Action signature==
+
:; <code>[gn:act_isIdenticalFile]|[@drawable/resourceId]</code>
;<code>[gn:act_isIdenticalFile]|[@drawable/resourceId]</code>
+
<hr>
==Value field content==
 
;<code>@drawable/resourceId</code>: name of drawable resource that will be checked
 

Latest revision as of 17:07, 12 July 2017

gn:act_isIdenticalFile

Description
Action used to compare if file that is stored on device is identical to file information last stored.
Action returns
boolean

Action signatures

Check if file is identical

[gn:act_isIdenticalFile]|[source]
Parameter Description
source source from where the file information will be used
  • Valid sources:
    • @drawable
    • hardcoded file path

Example

@drawable/resourceId - file reference
[gn:act_isIdenticalFile]|[@drawable/resourceId]