C# Class android.content.Context

显示文件 Open project: JeroMiya/androidmono Class Usage Examples

Public Methods

Method Description
bindService ( android arg0, android arg1, int arg2 ) : bool
checkCallingOrSelfPermission ( java arg0 ) : int
checkCallingOrSelfUriPermission ( android arg0, int arg1 ) : int
checkCallingPermission ( java arg0 ) : int
checkCallingUriPermission ( android arg0, int arg1 ) : int
checkPermission ( java arg0, int arg1, int arg2 ) : int
checkUriPermission ( android arg0, int arg1, int arg2, int arg3 ) : int
checkUriPermission ( android arg0, java arg1, java arg2, int arg3, int arg4, int arg5 ) : int
clearWallpaper ( ) : void
createPackageContext ( java arg0, int arg1 ) : global::android.content.Context
databaseList ( ) : global::java.lang.String[]
deleteDatabase ( java arg0 ) : bool
deleteFile ( java arg0 ) : bool
enforceCallingOrSelfPermission ( java arg0, java arg1 ) : void
enforceCallingOrSelfUriPermission ( android arg0, int arg1, java arg2 ) : void
enforceCallingPermission ( java arg0, java arg1 ) : void
enforceCallingUriPermission ( android arg0, int arg1, java arg2 ) : void
enforcePermission ( java arg0, int arg1, int arg2, java arg3 ) : void
enforceUriPermission ( android arg0, int arg1, int arg2, int arg3, java arg4 ) : void
enforceUriPermission ( android arg0, java arg1, java arg2, int arg3, int arg4, int arg5, java arg6 ) : void
fileList ( ) : global::java.lang.String[]
getApplicationContext ( ) : global::android.content.Context
getApplicationInfo ( ) : global::android.content.pm.ApplicationInfo
getAssets ( ) : global::android.content.res.AssetManager
getCacheDir ( ) : global::java.io.File
getClassLoader ( ) : global::java.lang.ClassLoader
getContentResolver ( ) : global::android.content.ContentResolver
getDatabasePath ( java arg0 ) : global::java.io.File
getDir ( java arg0, int arg1 ) : global::java.io.File
getExternalCacheDir ( ) : global::java.io.File
getExternalFilesDir ( java arg0 ) : global::java.io.File
getFileStreamPath ( java arg0 ) : global::java.io.File
getFilesDir ( ) : global::java.io.File
getMainLooper ( ) : global::android.os.Looper
getPackageCodePath ( ) : global::java.lang.String
getPackageManager ( ) : global::android.content.pm.PackageManager
getPackageName ( ) : global::java.lang.String
getPackageResourcePath ( ) : global::java.lang.String
getResources ( ) : global::android.content.res.Resources
getSharedPreferences ( java arg0, int arg1 ) : global::android.content.SharedPreferences
getString ( int arg0 ) : global::java.lang.String
getString ( int arg0, java arg1 ) : global::java.lang.String
getSystemService ( java arg0 ) : global::java.lang.Object
getText ( int arg0 ) : global::java.lang.CharSequence
getTheme ( ) : global::android.content.res.Resources.Theme
getWallpaper ( ) : global::android.graphics.drawable.Drawable
getWallpaperDesiredMinimumHeight ( ) : int
getWallpaperDesiredMinimumWidth ( ) : int
grantUriPermission ( java arg0, android arg1, int arg2 ) : void
isRestricted ( ) : bool
obtainStyledAttributes ( android arg0, int arg1 ) : global::android.content.res.TypedArray
obtainStyledAttributes ( android arg0, int arg1, int arg2, int arg3 ) : global::android.content.res.TypedArray
obtainStyledAttributes ( int arg0 ) : global::android.content.res.TypedArray
obtainStyledAttributes ( int arg0, int arg1 ) : global::android.content.res.TypedArray
openFileInput ( java arg0 ) : global::java.io.FileInputStream
openFileOutput ( java arg0, int arg1 ) : global::java.io.FileOutputStream
openOrCreateDatabase ( java arg0, int arg1, android arg2 ) : global::android.database.sqlite.SQLiteDatabase
peekWallpaper ( ) : global::android.graphics.drawable.Drawable
registerReceiver ( android arg0, android arg1 ) : global::android.content.Intent
registerReceiver ( android arg0, android arg1, java arg2, android arg3 ) : global::android.content.Intent
removeStickyBroadcast ( android arg0 ) : void
revokeUriPermission ( android arg0, int arg1 ) : void
sendBroadcast ( android arg0 ) : void
sendBroadcast ( android arg0, java arg1 ) : void
sendOrderedBroadcast ( android arg0, java arg1 ) : void
sendOrderedBroadcast ( android arg0, java arg1, android arg2, android arg3, int arg4, java arg5, android arg6 ) : void
sendStickyBroadcast ( android arg0 ) : void
sendStickyOrderedBroadcast ( android arg0, android arg1, android arg2, int arg3, java arg4, android arg5 ) : void
setTheme ( int arg0 ) : void
setWallpaper ( android arg0 ) : void
setWallpaper ( java arg0 ) : void
startActivity ( android arg0 ) : void
startInstrumentation ( android arg0, java arg1, android arg2 ) : bool
startIntentSender ( android arg0, android arg1, int arg2, int arg3, int arg4 ) : void
startService ( android arg0 ) : global::android.content.ComponentName
stopService ( android arg0 ) : bool
unbindService ( android arg0 ) : void
unregisterReceiver ( android arg0 ) : void

Protected Methods

Method Description
Context ( global @__env )

Private Methods

Method Description
Context ( )

Method Details

Context() protected method

protected Context ( global @__env )
@__env global

bindService() public abstract method

public abstract bindService ( android arg0, android arg1, int arg2 ) : bool
arg0 android
arg1 android
arg2 int
return bool

checkCallingOrSelfPermission() public abstract method

public abstract checkCallingOrSelfPermission ( java arg0 ) : int
arg0 java
return int

checkCallingOrSelfUriPermission() public abstract method

public abstract checkCallingOrSelfUriPermission ( android arg0, int arg1 ) : int
arg0 android
arg1 int
return int

checkCallingPermission() public abstract method

public abstract checkCallingPermission ( java arg0 ) : int
arg0 java
return int

checkCallingUriPermission() public abstract method

public abstract checkCallingUriPermission ( android arg0, int arg1 ) : int
arg0 android
arg1 int
return int

checkPermission() public abstract method

public abstract checkPermission ( java arg0, int arg1, int arg2 ) : int
arg0 java
arg1 int
arg2 int
return int

checkUriPermission() public abstract method

public abstract checkUriPermission ( android arg0, int arg1, int arg2, int arg3 ) : int
arg0 android
arg1 int
arg2 int
arg3 int
return int

checkUriPermission() public abstract method

public abstract checkUriPermission ( android arg0, java arg1, java arg2, int arg3, int arg4, int arg5 ) : int
arg0 android
arg1 java
arg2 java
arg3 int
arg4 int
arg5 int
return int

clearWallpaper() public abstract method

public abstract clearWallpaper ( ) : void
return void

createPackageContext() public abstract method

public abstract createPackageContext ( java arg0, int arg1 ) : global::android.content.Context
arg0 java
arg1 int
return global::android.content.Context

databaseList() public abstract method

public abstract databaseList ( ) : global::java.lang.String[]
return global::java.lang.String[]

deleteDatabase() public abstract method

public abstract deleteDatabase ( java arg0 ) : bool
arg0 java
return bool

deleteFile() public abstract method

public abstract deleteFile ( java arg0 ) : bool
arg0 java
return bool

enforceCallingOrSelfPermission() public abstract method

public abstract enforceCallingOrSelfPermission ( java arg0, java arg1 ) : void
arg0 java
arg1 java
return void

enforceCallingOrSelfUriPermission() public abstract method

public abstract enforceCallingOrSelfUriPermission ( android arg0, int arg1, java arg2 ) : void
arg0 android
arg1 int
arg2 java
return void

enforceCallingPermission() public abstract method

public abstract enforceCallingPermission ( java arg0, java arg1 ) : void
arg0 java
arg1 java
return void

enforceCallingUriPermission() public abstract method

public abstract enforceCallingUriPermission ( android arg0, int arg1, java arg2 ) : void
arg0 android
arg1 int
arg2 java
return void

enforcePermission() public abstract method

public abstract enforcePermission ( java arg0, int arg1, int arg2, java arg3 ) : void
arg0 java
arg1 int
arg2 int
arg3 java
return void

enforceUriPermission() public abstract method

public abstract enforceUriPermission ( android arg0, int arg1, int arg2, int arg3, java arg4 ) : void
arg0 android
arg1 int
arg2 int
arg3 int
arg4 java
return void

enforceUriPermission() public abstract method

public abstract enforceUriPermission ( android arg0, java arg1, java arg2, int arg3, int arg4, int arg5, java arg6 ) : void
arg0 android
arg1 java
arg2 java
arg3 int
arg4 int
arg5 int
arg6 java
return void

fileList() public abstract method

public abstract fileList ( ) : global::java.lang.String[]
return global::java.lang.String[]

getApplicationContext() public abstract method

public abstract getApplicationContext ( ) : global::android.content.Context
return global::android.content.Context

getApplicationInfo() public abstract method

public abstract getApplicationInfo ( ) : global::android.content.pm.ApplicationInfo
return global::android.content.pm.ApplicationInfo

getAssets() public abstract method

public abstract getAssets ( ) : global::android.content.res.AssetManager
return global::android.content.res.AssetManager

getCacheDir() public abstract method

public abstract getCacheDir ( ) : global::java.io.File
return global::java.io.File

getClassLoader() public abstract method

public abstract getClassLoader ( ) : global::java.lang.ClassLoader
return global::java.lang.ClassLoader

getContentResolver() public abstract method

public abstract getContentResolver ( ) : global::android.content.ContentResolver
return global::android.content.ContentResolver

getDatabasePath() public abstract method

public abstract getDatabasePath ( java arg0 ) : global::java.io.File
arg0 java
return global::java.io.File

getDir() public abstract method

public abstract getDir ( java arg0, int arg1 ) : global::java.io.File
arg0 java
arg1 int
return global::java.io.File

getExternalCacheDir() public abstract method

public abstract getExternalCacheDir ( ) : global::java.io.File
return global::java.io.File

getExternalFilesDir() public abstract method

public abstract getExternalFilesDir ( java arg0 ) : global::java.io.File
arg0 java
return global::java.io.File

getFileStreamPath() public abstract method

public abstract getFileStreamPath ( java arg0 ) : global::java.io.File
arg0 java
return global::java.io.File

getFilesDir() public abstract method

public abstract getFilesDir ( ) : global::java.io.File
return global::java.io.File

getMainLooper() public abstract method

public abstract getMainLooper ( ) : global::android.os.Looper
return global::android.os.Looper

getPackageCodePath() public abstract method

public abstract getPackageCodePath ( ) : global::java.lang.String
return global::java.lang.String

getPackageManager() public abstract method

public abstract getPackageManager ( ) : global::android.content.pm.PackageManager
return global::android.content.pm.PackageManager

getPackageName() public abstract method

public abstract getPackageName ( ) : global::java.lang.String
return global::java.lang.String

getPackageResourcePath() public abstract method

public abstract getPackageResourcePath ( ) : global::java.lang.String
return global::java.lang.String

getResources() public abstract method

public abstract getResources ( ) : global::android.content.res.Resources
return global::android.content.res.Resources

getSharedPreferences() public abstract method

public abstract getSharedPreferences ( java arg0, int arg1 ) : global::android.content.SharedPreferences
arg0 java
arg1 int
return global::android.content.SharedPreferences

getString() public method

public getString ( int arg0 ) : global::java.lang.String
arg0 int
return global::java.lang.String

getString() public method

public getString ( int arg0, java arg1 ) : global::java.lang.String
arg0 int
arg1 java
return global::java.lang.String

getSystemService() public abstract method

public abstract getSystemService ( java arg0 ) : global::java.lang.Object
arg0 java
return global::java.lang.Object

getText() public method

public getText ( int arg0 ) : global::java.lang.CharSequence
arg0 int
return global::java.lang.CharSequence

getTheme() public abstract method

public abstract getTheme ( ) : global::android.content.res.Resources.Theme
return global::android.content.res.Resources.Theme

getWallpaper() public abstract method

public abstract getWallpaper ( ) : global::android.graphics.drawable.Drawable
return global::android.graphics.drawable.Drawable

getWallpaperDesiredMinimumHeight() public abstract method

public abstract getWallpaperDesiredMinimumHeight ( ) : int
return int

getWallpaperDesiredMinimumWidth() public abstract method

public abstract getWallpaperDesiredMinimumWidth ( ) : int
return int

grantUriPermission() public abstract method

public abstract grantUriPermission ( java arg0, android arg1, int arg2 ) : void
arg0 java
arg1 android
arg2 int
return void

isRestricted() public method

public isRestricted ( ) : bool
return bool

obtainStyledAttributes() public method

public obtainStyledAttributes ( android arg0, int arg1 ) : global::android.content.res.TypedArray
arg0 android
arg1 int
return global::android.content.res.TypedArray

obtainStyledAttributes() public method

public obtainStyledAttributes ( android arg0, int arg1, int arg2, int arg3 ) : global::android.content.res.TypedArray
arg0 android
arg1 int
arg2 int
arg3 int
return global::android.content.res.TypedArray

obtainStyledAttributes() public method

public obtainStyledAttributes ( int arg0 ) : global::android.content.res.TypedArray
arg0 int
return global::android.content.res.TypedArray

obtainStyledAttributes() public method

public obtainStyledAttributes ( int arg0, int arg1 ) : global::android.content.res.TypedArray
arg0 int
arg1 int
return global::android.content.res.TypedArray

openFileInput() public abstract method

public abstract openFileInput ( java arg0 ) : global::java.io.FileInputStream
arg0 java
return global::java.io.FileInputStream

openFileOutput() public abstract method

public abstract openFileOutput ( java arg0, int arg1 ) : global::java.io.FileOutputStream
arg0 java
arg1 int
return global::java.io.FileOutputStream

openOrCreateDatabase() public abstract method

public abstract openOrCreateDatabase ( java arg0, int arg1, android arg2 ) : global::android.database.sqlite.SQLiteDatabase
arg0 java
arg1 int
arg2 android
return global::android.database.sqlite.SQLiteDatabase

peekWallpaper() public abstract method

public abstract peekWallpaper ( ) : global::android.graphics.drawable.Drawable
return global::android.graphics.drawable.Drawable

registerReceiver() public abstract method

public abstract registerReceiver ( android arg0, android arg1 ) : global::android.content.Intent
arg0 android
arg1 android
return global::android.content.Intent

registerReceiver() public abstract method

public abstract registerReceiver ( android arg0, android arg1, java arg2, android arg3 ) : global::android.content.Intent
arg0 android
arg1 android
arg2 java
arg3 android
return global::android.content.Intent

removeStickyBroadcast() public abstract method

public abstract removeStickyBroadcast ( android arg0 ) : void
arg0 android
return void

revokeUriPermission() public abstract method

public abstract revokeUriPermission ( android arg0, int arg1 ) : void
arg0 android
arg1 int
return void

sendBroadcast() public abstract method

public abstract sendBroadcast ( android arg0 ) : void
arg0 android
return void

sendBroadcast() public abstract method

public abstract sendBroadcast ( android arg0, java arg1 ) : void
arg0 android
arg1 java
return void

sendOrderedBroadcast() public abstract method

public abstract sendOrderedBroadcast ( android arg0, java arg1 ) : void
arg0 android
arg1 java
return void

sendOrderedBroadcast() public abstract method

public abstract sendOrderedBroadcast ( android arg0, java arg1, android arg2, android arg3, int arg4, java arg5, android arg6 ) : void
arg0 android
arg1 java
arg2 android
arg3 android
arg4 int
arg5 java
arg6 android
return void

sendStickyBroadcast() public abstract method

public abstract sendStickyBroadcast ( android arg0 ) : void
arg0 android
return void

sendStickyOrderedBroadcast() public abstract method

public abstract sendStickyOrderedBroadcast ( android arg0, android arg1, android arg2, int arg3, java arg4, android arg5 ) : void
arg0 android
arg1 android
arg2 android
arg3 int
arg4 java
arg5 android
return void

setTheme() public abstract method

public abstract setTheme ( int arg0 ) : void
arg0 int
return void

setWallpaper() public abstract method

public abstract setWallpaper ( android arg0 ) : void
arg0 android
return void

setWallpaper() public abstract method

public abstract setWallpaper ( java arg0 ) : void
arg0 java
return void

startActivity() public abstract method

public abstract startActivity ( android arg0 ) : void
arg0 android
return void

startInstrumentation() public abstract method

public abstract startInstrumentation ( android arg0, java arg1, android arg2 ) : bool
arg0 android
arg1 java
arg2 android
return bool

startIntentSender() public abstract method

public abstract startIntentSender ( android arg0, android arg1, int arg2, int arg3, int arg4 ) : void
arg0 android
arg1 android
arg2 int
arg3 int
arg4 int
return void

startService() public abstract method

public abstract startService ( android arg0 ) : global::android.content.ComponentName
arg0 android
return global::android.content.ComponentName

stopService() public abstract method

public abstract stopService ( android arg0 ) : bool
arg0 android
return bool

unbindService() public abstract method

public abstract unbindService ( android arg0 ) : void
arg0 android
return void

unregisterReceiver() public abstract method

public abstract unregisterReceiver ( android arg0 ) : void
arg0 android
return void