Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
V
visionmoments-master
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
CI / CD Analytics
Repository Analytics
Value Stream Analytics
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Krishna Bhilare
visionmoments-master
Commits
07899cbd
Commit
07899cbd
authored
Nov 30, 2020
by
Krishna Bhilare
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Actions added from Sample App
parent
7269b768
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
51 additions
and
11 deletions
+51
-11
app/src/main/res/xml/actions.xml
app/src/main/res/xml/actions.xml
+51
-11
No files found.
app/src/main/res/xml/actions.xml
View file @
07899cbd
...
...
@@ -19,31 +19,71 @@
<!-- This file describes the supported actions by this app -->
<action
intentName=
"android.intent.action.VIEW"
>
<action
intentName=
"actions.intent.START_EXERCISE"
>
<!-- Each action requires at least one fulfillment that defines how the app will handle this action -->
<!-- Define the urlTemplate in the format you define your deeplinks in AndroidManifest.xml -->
<fulfillment
urlTemplate=
"https://
proteusvision.com/start{?t
ype}"
>
<fulfillment
urlTemplate=
"https://
fit-actions.firebaseapp.com/start{?exerciseT
ype}"
>
<!-- Define how the actions parameters (intentParameter) is mapped in the urlTemplate above -->
<parameter-mapping
intentParameter=
"
parameter
.name"
urlParameter=
"
t
ype"
/>
intentParameter=
"
exercise
.name"
urlParameter=
"
exerciseT
ype"
/>
</fulfillment>
<!-- Map a parameter to an entity set reference -->
<parameter
name=
"
parameter
.name"
>
<entity-set-reference
entitySetId=
"
Vision
EntitySet"
/>
<parameter
name=
"
exercise
.name"
>
<entity-set-reference
entitySetId=
"
Exercise
EntitySet"
/>
</parameter>
</action>
<!-- Define an inline inventory -->
<!-- This sample maps supported entities with the class Activity.Type -->
<entity-set
entitySetId=
"VisionEntitySet"
>
<action
intentName=
"actions.intent.STOP_EXERCISE"
>
<fulfillment
urlTemplate=
"https://fit-actions.firebaseapp.com/stop"
/>
</action>
<action
intentName=
"actions.intent.GET_EXERCISE_OBSERVATION"
>
<!-- You can define the fulfillment mode, it can be SLICE or DEEPLINK -->
<!-- When slice is used, make sure you are supporting slices in your app -->
<!-- Also, not that the urlTemplate must be of the style content://{slice_provider_authority}/... -->
<!-- Make sure that the authority matches with the one defined in AndroidManifest.xml -->
<fulfillment
fulfillmentMode=
"actions.fulfillment.SLICE"
urlTemplate=
"content://com.prokb.android.fitactions.slices.provider/stats{?exerciseType}"
>
<!-- If a parameter is set as required, the action will only be fulfilled if the parameter is found -->
<!-- That's why a fallback urlTemplate needs to be provided for such case. -->
<parameter-mapping
intentParameter=
"exerciseObservation.aboutExercise.name"
required=
"true"
urlParameter=
"exerciseType"
/>
</fulfillment>
<!-- In case the exercise name is not found we fallback to the stats deep-link inside the app -->
<fulfillment
fulfillmentMode=
"actions.fulfillment.DEEPLINK"
urlTemplate=
"https://fit-actions.firebaseapp.com/stats"
/>
</action>
<entity-set
entitySetId=
"ExerciseEntitySet"
>
<entity
name=
"@string/activity_running"
identifier=
"RUNNING"
/>
<entity
name=
"@string/activity_walking"
identifier=
"WALKING"
/>
<entity
name=
"@string/activity_hiking"
identifier=
"HIKING"
/>
<entity
name=
"
image captur
ing"
identifier=
"C
APTURE
"
/>
name=
"
@string/activity_cycl
ing"
identifier=
"C
YCLING
"
/>
</entity-set>
</actions>
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment