Skip to content

Commit

Permalink
README tunning
Browse files Browse the repository at this point in the history
  • Loading branch information
Maks3w committed Feb 13, 2018
1 parent 349f4fa commit ddd147c
Showing 1 changed file with 55 additions and 55 deletions.
110 changes: 55 additions & 55 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ Add this in your root `build.gradle` file (**not** your module `build.gradle` fi

```gradle
allprojects {
repositories {
repositories {
maven { url "https://jitpack.io" }
}
}
Expand All @@ -15,7 +15,7 @@ allprojects {
Then, add the library to your module `build.gradle`
```gradle
dependencies {
compile 'com.github.xxx'
compile 'com.github.aplazame:android-sdk:master-SNAPSHOT'
}
```

Expand Down Expand Up @@ -217,21 +217,21 @@ AplazameSDK.setConfiguration("my public key", true)
3) Check Aplazame available
```java
AplazameSDK.checkAvailability(2000.0, "EUR", new AvailabilityCallback() {
@Override
public void onAvailable() {
// Enable checkout button for instance
}

@Override
public void onNotAvailable() {
// Hide the checkout button for instance
}

@Override
public void onFailure() {
// Hide the checkout button for instance (unknown error)
}
});
@Override
public void onAvailable() {
// Enable checkout button for instance
}

@Override
public void onNotAvailable() {
// Hide the checkout button for instance
}

@Override
public void onFailure() {
// Hide the checkout button for instance (unknown error)
}
});
```


Expand All @@ -241,43 +241,43 @@ AplazameSDK.checkAvailability(2000.0, "EUR", new AvailabilityCallback() {

```java
AplazameSDK.initializeAplazameWebView(webView, new JsWebViewEvents() {
@Override
public void onPageStarted() {}

@Override
public void onPageFinished() {}

@Override
public void onReadyEvent() {}

@Override
public void onStatusChangeEvent(String status) {
switch (status) {
case SUCCESS:
break;
case PENDING:
break;
case KO:
break;
}
}

@Override
public void onCloseEvent(String status) {
switch (status) {
case SUCCESS:
break;
case PENDING:
finish();
break;
case DISMISS:
finish();
break;
case KO:
break;
}
}
});
@Override
public void onPageStarted() {}

@Override
public void onPageFinished() {}

@Override
public void onReadyEvent() {}

@Override
public void onStatusChangeEvent(String status) {
switch (status) {
case SUCCESS:
break;
case PENDING:
break;
case KO:
break;
}
}

@Override
public void onCloseEvent(String status) {
switch (status) {
case SUCCESS:
break;
case PENDING:
finish();
break;
case DISMISS:
finish();
break;
case KO:
break;
}
}
});
```

![alt text](https://raw.githubusercontent.com/aplazame/android-sdk/master/image2.png)
Expand All @@ -286,7 +286,7 @@ License
-------

Aplazame is Copyright (c) 2018 Aplazame, inc. It is free software, and may be
redistributed under the terms specified in the [LICENSE](https://raw.githubusercontent.com/aplazame/android-sdk/master/LICENSE.txt) file.
redistributed under the terms specified in the [LICENSE](/LICENSE.txt) file.

About
-----
Expand Down

0 comments on commit ddd147c

Please sign in to comment.