All Downloads are FREE. Search and download functionalities are using the official Maven repository.

android.content.Context Maven / Gradle / Ivy

There is a newer version: 5.0.0
Show newest version
package android.content;

import android.content.res.AssetManager;
import android.content.res.Resources;
import android.os.Handler;
import android.os.Looper;
import android.content.pm.ApplicationInfo;

import java.io.File;

public abstract class Context {

    public abstract AssetManager getAssets();

    public abstract Resources getResources();

    public abstract Looper getMainLooper();

    public abstract Intent registerReceiver(final BroadcastReceiver receiver, final IntentFilter filter);

    public abstract Intent registerReceiver(final BroadcastReceiver receiver, final IntentFilter filter, final int flags);

    public abstract Intent registerReceiver(final BroadcastReceiver receiver, final IntentFilter filter, final String perm, final Handler handler);

    public abstract Intent registerReceiver(final BroadcastReceiver receiver, final IntentFilter filter, final String perm, final Handler handler, final int flags);

    public abstract void unregisterReceiver(final BroadcastReceiver receiver);

    public abstract Object getSystemService(final String name);

    public abstract Context getApplicationContext();

    public abstract File getFilesDir();

    public abstract String getPackageName();

    public abstract ApplicationInfo getApplicationInfo();

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy