Skip to content

Instantly share code, notes, and snippets.

Aniruddh Bhilvare astuter

  • Netrix LLC
  • Pune, India
Block or report user

Report or block astuter

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@astuter
astuter / MVP + Interactor example.kt
Created Jun 11, 2018 — forked from marciogranzotto/MVP + Interactor example.kt
This is an example of Android development with MVP + Interactor in Kotlin
View MVP + Interactor example.kt
interface LoginContracts {
interface View {
fun presentHomeScreen(user: User)
fun showError(message: String)
}
interface Presenter {
fun onDestroy()
fun onLoginButtonPressed(username: String, password: String)
}
@astuter
astuter / VIPER Android Example.kt
Created Jun 11, 2018 — forked from marciogranzotto/VIPER Android Example.kt
This is an example of Android development with VIPER in Kotlin
View VIPER Android Example.kt
interface LoginContracts {
interface View {
fun showError(message: String)
}
interface Presenter {
fun onDestroy()
fun onLoginButtonPressed(username: String, password: String)
}
@astuter
astuter / Libraries.md
Last active Feb 7, 2017
Android Helpful Libraries
@astuter
astuter / Utils.java
Last active Mar 15, 2016
Helper class for most important and basic methods for any Android App.
View Utils.java
public class Utils {
/*
* Usage: Check if device have internet connection or not, before communicating with server.
* @param ctx: Context form which this method will be called
* @return Boolean: If internet is available or not.
*/
public static boolean isNetConnected(Context ctx) {
Runtime runtime = Runtime.getRuntime();
try {
@astuter
astuter / RestService.swift
Last active Jul 8, 2018
Simple Class for making Rest API calls in swift.
View RestService.swift
import Foundation
import UIKit
class RestService{
/**
GET respons from REST API.
:param: reqUrl URL of webservice.
:param: completionHandler callback function, this will called once you get response.
You can’t perform that action at this time.