android.database.Cursor.getNotificationUri()方法的使用及代码示例

x33g5p2x  于2022-01-17 转载在 其他  
字(1.8k)|赞(0)|评价(0)|浏览(204)

本文整理了Java中android.database.Cursor.getNotificationUri()方法的一些代码示例,展示了Cursor.getNotificationUri()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Cursor.getNotificationUri()方法的具体详情如下:
包路径:android.database.Cursor
类名称:Cursor
方法名:getNotificationUri

Cursor.getNotificationUri介绍

暂无

代码示例

代码示例来源:origin: robolectric/robolectric

@Override @Implementation(minSdk = KITKAT)
public Uri getNotificationUri() {
 return wrappedCursor.getNotificationUri();
}

代码示例来源:origin: parse-community/Parse-SDK-Android

@TargetApi(Build.VERSION_CODES.KITKAT)
@Override
public Uri getNotificationUri() {
  return cursor.getNotificationUri();
}

代码示例来源:origin: org.robolectric/framework

@Override @Implementation(minSdk = KITKAT)
public Uri getNotificationUri() {
 return wrappedCursor.getNotificationUri();
}

代码示例来源:origin: org.robolectric/shadows-core

@Implementation(minSdk = KITKAT)
public Uri getNotificationUri() {
 return wrappedCursor.getNotificationUri();
}

代码示例来源:origin: org.robolectric/shadows-core-v23

@Implementation
public Uri getNotificationUri() {
 return wrappedCursor.getNotificationUri();
}

代码示例来源:origin: org.robolectric/shadows-framework

@Override @Implementation(minSdk = KITKAT)
public Uri getNotificationUri() {
 return wrappedCursor.getNotificationUri();
}

代码示例来源:origin: stackoverflow.com

Uri qU = DocumentsContract.buildChildDocumentsUriUsingTree( tU, ... );
Cursor c = contentResolver.query( qU, ... );
boolean xL = c.getExtras().getBoolean( DocumentsContract.EXTRA_LOADING );
if( xL ) // then also expect notification URI
{
  Uri nU = c.getNotificationUri();
  boolean notifyForDescendents;
  if( nU == null ) //               <--- possible Android bug
  {
    // default to topmost ancestor of tU
    Uri.Builder b = new Uri.Builder();
    nU = b.scheme(tU.getScheme()).authority(tU.getAuthority()).build();
    notifyForDescendents = true;
  }
  else notifyForDescendents = false;
  contentResolver.registerContentObserver( nU, notifyForDescendents, ... );
}

相关文章