-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
hayk
committed
Dec 15, 2023
1 parent
2f47871
commit 250e991
Showing
21 changed files
with
660 additions
and
94 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Binary file not shown.
40 changes: 40 additions & 0 deletions
40
app/src/main/java/com/matilock/matiintegrationdemo/ColorsCustomizationActivity.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
package com.matilock.matiintegrationdemo; | ||
|
||
import android.os.Bundle; | ||
|
||
import androidx.appcompat.app.AppCompatActivity; | ||
import androidx.core.content.ContextCompat; | ||
|
||
import com.metamap.metamap_sdk.Metadata; | ||
import com.metamap.metamap_sdk.MetamapButton; | ||
import com.metamap.metamap_sdk.metadata.UIConfig; | ||
|
||
public class ColorsCustomizationActivity extends AppCompatActivity { | ||
|
||
@Override | ||
protected void onCreate(Bundle savedInstanceState) { | ||
super.onCreate(savedInstanceState); | ||
setContentView(R.layout.activity_metamap_button); | ||
|
||
MetamapButton btn = findViewById(R.id.metamapButton); | ||
|
||
int accentColor = ContextCompat.getColor(this, R.color.colorAccent); | ||
int titleTextColor = ContextCompat.getColor(this, R.color.titleTextColor); | ||
int subtitleTextColor = ContextCompat.getColor(this, R.color.subtitleTextColor); | ||
int backgroundColor = ContextCompat.getColor(this, R.color.backgroundColor); | ||
int lineColor = ContextCompat.getColor(this, R.color.lineColor); | ||
|
||
btn.setParams( | ||
this, | ||
"YOUR_CLIENT_ID", | ||
"YOUR_FLOW_ID", | ||
new Metadata.Builder() | ||
.uiConfig( | ||
new UIConfig( | ||
null, null, null, accentColor, titleTextColor, //These colors are used in the loading screen, | ||
subtitleTextColor, backgroundColor, lineColor //Other screens apply the colors from the dashboard configuration | ||
) | ||
) | ||
.build()); | ||
} | ||
} |
30 changes: 30 additions & 0 deletions
30
app/src/main/java/com/matilock/matiintegrationdemo/CooldownActivity.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
package com.matilock.matiintegrationdemo; | ||
|
||
import android.os.Bundle; | ||
|
||
import androidx.appcompat.app.AppCompatActivity; | ||
|
||
import com.metamap.metamap_sdk.Metadata; | ||
import com.metamap.metamap_sdk.MetamapButton; | ||
|
||
public class CooldownActivity extends AppCompatActivity { | ||
|
||
@Override | ||
protected void onCreate(Bundle savedInstanceState) { | ||
super.onCreate(savedInstanceState); | ||
setContentView(R.layout.activity_metamap_button); | ||
|
||
MetamapButton btn = findViewById(R.id.metamapButton); | ||
|
||
btn.setParams( | ||
this, | ||
"YOUR_CLIENT_ID", | ||
"YOUR_FLOW_ID", | ||
new Metadata.Builder() | ||
.additionalData("phoneNumber", "USER_PHONE_NUMBER") //Any of the fields is valid | ||
// .additionalData("email", "USER_EMAIL") | ||
// .additionalData("documentNumber", "USER_DOCUMENT_NUMBER") | ||
.build() | ||
); | ||
} | ||
} |
23 changes: 23 additions & 0 deletions
23
app/src/main/java/com/matilock/matiintegrationdemo/EncryptionConfigActivity.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
package com.matilock.matiintegrationdemo; | ||
|
||
import android.os.Bundle; | ||
|
||
import androidx.appcompat.app.AppCompatActivity; | ||
|
||
import com.metamap.metamap_sdk.MetamapButton; | ||
import com.metamap.metamap_sdk.MetamapSdk; | ||
|
||
public class EncryptionConfigActivity extends AppCompatActivity { | ||
|
||
@Override | ||
protected void onCreate(Bundle savedInstanceState) { | ||
super.onCreate(savedInstanceState); | ||
setContentView(R.layout.activity_metamap_button); | ||
|
||
MetamapButton btn = findViewById(R.id.metamapButton); | ||
|
||
btn.setParams(this, "YOUR_CLIENT_ID", "YOUR_FLOW_ID", null, | ||
MetamapSdk.DEFAULT_REQUEST_CODE, null, "YOUR_ENCRYPTION_CONFIGURATION_ID"); | ||
|
||
} | ||
} |
28 changes: 28 additions & 0 deletions
28
app/src/main/java/com/matilock/matiintegrationdemo/FaceMatchActivity.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
package com.matilock.matiintegrationdemo; | ||
|
||
import android.os.Bundle; | ||
|
||
import androidx.appcompat.app.AppCompatActivity; | ||
|
||
import com.metamap.metamap_sdk.Metadata; | ||
import com.metamap.metamap_sdk.MetamapButton; | ||
|
||
public class FaceMatchActivity extends AppCompatActivity { | ||
|
||
@Override | ||
protected void onCreate(Bundle savedInstanceState) { | ||
super.onCreate(savedInstanceState); | ||
setContentView(R.layout.activity_metamap_button); | ||
|
||
MetamapButton btn = findViewById(R.id.metamapButton); | ||
|
||
btn.setParams( | ||
this, | ||
"YOUR_CLIENT_ID", | ||
"YOUR_FLOW_ID", | ||
new Metadata.Builder() | ||
.identityId("USER_IDENTITY_ID") | ||
.build() | ||
); | ||
} | ||
} |
38 changes: 38 additions & 0 deletions
38
app/src/main/java/com/matilock/matiintegrationdemo/FontCustomizationActivity.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
package com.matilock.matiintegrationdemo; | ||
|
||
import android.os.Bundle; | ||
|
||
import androidx.appcompat.app.AppCompatActivity; | ||
|
||
import com.metamap.metamap_sdk.Metadata; | ||
import com.metamap.metamap_sdk.MetamapButton; | ||
import com.metamap.metamap_sdk.metadata.FontConfig; | ||
import com.metamap.metamap_sdk.metadata.UIConfig; | ||
|
||
public class FontCustomizationActivity extends AppCompatActivity { | ||
|
||
@Override | ||
protected void onCreate(Bundle savedInstanceState) { | ||
super.onCreate(savedInstanceState); | ||
setContentView(R.layout.activity_metamap_button); | ||
|
||
MetamapButton btn = findViewById(R.id.metamapButton); | ||
|
||
btn.setParams( | ||
this, | ||
"YOUR_CLIENT_ID", | ||
"YOUR_FLOW_ID", | ||
new Metadata.Builder() | ||
.uiConfig( | ||
new UIConfig(null, null, null, null, null, null, null, null, | ||
new FontConfig( | ||
"comic_neue.ttf", | ||
"comic_neue_bold.ttf" | ||
) | ||
) | ||
) | ||
.build() | ||
); | ||
|
||
} | ||
} |
30 changes: 30 additions & 0 deletions
30
app/src/main/java/com/matilock/matiintegrationdemo/LanguageConfigActivity.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
package com.matilock.matiintegrationdemo; | ||
|
||
import android.os.Bundle; | ||
|
||
import androidx.appcompat.app.AppCompatActivity; | ||
|
||
import com.metamap.metamap_sdk.Metadata; | ||
import com.metamap.metamap_sdk.MetamapButton; | ||
import com.metamap.metamap_sdk.metadata.MetamapLanguage; | ||
import com.metamap.metamap_sdk.metadata.UIConfig; | ||
|
||
public class LanguageConfigActivity extends AppCompatActivity { | ||
|
||
@Override | ||
protected void onCreate(Bundle savedInstanceState) { | ||
super.onCreate(savedInstanceState); | ||
setContentView(R.layout.activity_metamap_button); | ||
|
||
MetamapButton btn = findViewById(R.id.metamapButton); | ||
|
||
btn.setParams( | ||
this, | ||
"YOUR_CLIENT_ID", | ||
"YOUR_FLOW_ID", | ||
new Metadata.Builder() | ||
.uiConfig(new UIConfig(MetamapLanguage.SPANISH)) | ||
.build() | ||
); | ||
} | ||
} |
Oops, something went wrong.