{"id":22413591,"url":"https://github.com/nextfaze/iqkit-android","last_synced_at":"2025-03-27T03:28:40.305Z","repository":{"id":31505379,"uuid":"35069673","full_name":"NextFaze/iqkit-android","owner":"NextFaze","description":null,"archived":false,"fork":false,"pushed_at":"2017-06-06T03:42:07.000Z","size":5707,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":22,"default_branch":"master","last_synced_at":"2025-02-01T08:48:46.659Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Java","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/NextFaze.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.docx","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-05-05T01:12:46.000Z","updated_at":"2019-01-28T06:25:54.000Z","dependencies_parsed_at":"2022-09-09T14:40:53.850Z","dependency_job_id":null,"html_url":"https://github.com/NextFaze/iqkit-android","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NextFaze%2Fiqkit-android","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NextFaze%2Fiqkit-android/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NextFaze%2Fiqkit-android/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NextFaze%2Fiqkit-android/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/NextFaze","download_url":"https://codeload.github.com/NextFaze/iqkit-android/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245776904,"owners_count":20670432,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-12-05T14:13:34.927Z","updated_at":"2025-03-27T03:28:40.269Z","avatar_url":"https://github.com/NextFaze.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"iQKit Android SDK\n-----------------\n\nThe iQKit Android SDK gives you access to the powerful iQNECT Vision Search platform\nto integrate into your Android app.\n\nInstallation\n------------\n\n#### With Gradle\n\nadd to your build.gradle:\n\n```\ndependencies {\n    compile 'org.iqnect:iqkit-core:0.9.3'\n    compile 'org.iqnect:iqkit-ui:0.9.3'\n}\n```\n\nmake sure you have the jcenter repo in your top level (project) build.gradle:\n\n```\nallprojects {\n    repositories {\n        jcenter()\n    }\n}\n```\n\nInitialization\n---------------\n\n#### Required\n\nIn your Application class, initialise the SDK with the App ID and secret you obtained from the [iQNECT Developer Portal](http://developer.iqnect.org):\n\n```java\nIQKit.init(context, \"APP-ID\", \"APP-SECRET\");\n```\n\nTo use the example apps, define the following in your global gradle.properties file:\n\n```\niqkitAppId=enter app id here\niqkitAppSecret=enter app secret here\n```\n\n#### Optional\n\nFor best results, report some further information about the user:\n\n```java\nIQKit.getInstance().setUserAge(42);\nIQKit.getInstance().setUserGender(Gender.FEMALE);\n```\n\nThe age and gender can be updated at anytime with these methods.\n\nUsage\n-----\n\nTo initiate a continuous vision search, add the following code to an appropriate activity:\n\n```java\n    ScannerActivity.start(this);\n```\n\nIf a successful match is found, you will get a callback via the `onActivityResult` method. The result may be `null` if the user has manually chosen an image to be searched for and no response is found:\n\n```java\n    protected void onActivityResult(int requestCode, int resultCode, Intent data) {\n        super.onActivityResult(requestCode, resultCode, data);\n\n        ScannerActivity.handleScannerResult(requestCode, resultCode, data, new ScannerActivity.ScannerResultHandler() {\n            @Override\n            public void onSearchResult(@Nullable SearchResult searchResult) {\n                if (searchResult != null) {\n                    WebActivity.start(MainActivity.this, searchResult.getSearchbarTitle(), searchResult.getPayloadUri());\n                } else {\n                    // no result from image search\n                }\n            }\n        });\n    }\n```\n\nIn the callback, the `SearchResult` object has a `payloadUri` property which is the URL returned by the search. Use this URL, typically to load in a web view or to open the iQNECT app.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnextfaze%2Fiqkit-android","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnextfaze%2Fiqkit-android","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnextfaze%2Fiqkit-android/lists"}